Skip to content

Commit c23814d

Browse files
committed
Added release workflow
1 parent ba56ed4 commit c23814d

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/release.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
releaseVersion:
6+
description: "Version to use for the release."
7+
required: true
8+
default: "X.Y.Z"
9+
developmentVersion:
10+
description: "Version to use for further development"
11+
required: true
12+
default: "X.Y.Z-RIE"
13+
jobs:
14+
release:
15+
environment: release
16+
runs-on: ubuntu-latest
17+
steps:
18+
# - uses: actions/checkout@v3 #in SnapStart but moved to below
19+
- name: Configure Git User # may be removed after https://github.com/actions/checkout/issues/13 is resolved
20+
uses: actions/checkout@v3
21+
run: |
22+
git config user.email "${{ github.actor }}@users.noreply.github.com"
23+
git config user.name "${{ github.actor }}"
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
- name: Build
27+
run: make compile-with-docker-all
28+
# run: echo ${{ github.sha }} > Release.txt
29+
# - name: Test
30+
# run: cat Release.txt
31+
- name: Release
32+
uses: softprops/action-gh-release@v2
33+
if: startsWith(github.ref, 'refs/tags/')
34+
with:
35+
files: |
36+
aws-lambda-rie
37+
aws-lambda-rie-arm64
38+
aws-lambda-rie-x64
39+
# --------
40+
# Add a step to upload each binary asset
41+
# - name: Upload aws-lambda-rie
42+
# uses: actions/upload-artifact@v2
43+
# with:
44+
# name: aws-lambda-rie
45+
# path: /path/to/aws-lambda-rie
46+
47+
# - name: Upload aws-lambda-rie-arm64
48+
# uses: actions/upload-artifact@v2
49+
# with:
50+
# name: aws-lambda-rie-arm64
51+
# path: /path/to/aws-lambda-rie-arm64
52+
53+
# - name: Upload aws-lambda-rie-x64
54+
# uses: actions/upload-artifact@v2
55+
# with:
56+
# name: aws-lambda-rie-x64
57+
# path: /path/to/aws-lambda-rie-x64

0 commit comments

Comments
 (0)