Skip to content

Commit 95c4295

Browse files
committed
add release configuration
trigger workflow with tag pushes remove old from makefile manually enable option generate release notes
1 parent 7fd66cd commit 95c4295

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.github/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- ignore-for-release
5+
categories:
6+
- title: Changes
7+
labels:
8+
- "*"

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Build
22

33
on:
44
push:
5-
branches: [ localstack-poc ]
5+
branches: [ localstack ]
6+
tags: v*.*
67
pull_request:
7-
branches: [ localstack-poc ]
8+
branches: [ localstack ]
89

910
jobs:
1011

@@ -25,4 +26,10 @@ jobs:
2526
with:
2627
name: aws-lambda-rie
2728
path: bin/*
28-
29+
- name: Release binaries
30+
uses: softprops/action-gh-release@v1
31+
if: startsWith(github.ref, 'refs/tags/')
32+
with:
33+
files: bin/*
34+
generate_release_notes: true
35+
prerelease: ${{ endsWith(github.ref, '-pre') }}

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,18 @@
66

77
BINARY_NAME=aws-lambda-rie
88
ARCH=x86_64
9-
GO_ARCH_old := amd64
109
GO_ARCH_x86_64 := amd64
1110
GO_ARCH_arm64 := arm64
12-
DESTINATION_old:= bin/${BINARY_NAME}
1311
DESTINATION_x86_64 := bin/${BINARY_NAME}-x86_64
1412
DESTINATION_arm64 := bin/${BINARY_NAME}-arm64
1513

1614
compile-with-docker-all:
1715
make ARCH=x86_64 compile-with-docker
1816
make ARCH=arm64 compile-with-docker
19-
make ARCH=old compile-with-docker
2017

2118
compile-lambda-linux-all:
2219
make ARCH=x86_64 compile-lambda-linux
2320
make ARCH=arm64 compile-lambda-linux
24-
make ARCH=old compile-lambda-linux
2521

2622
compile-with-docker:
2723
docker run --env GOPROXY=direct -v $(shell pwd):/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.17 make ARCH=${ARCH} compile-lambda-linux

0 commit comments

Comments
 (0)