Skip to content

Commit 59ccb71

Browse files
committed
Test alternative release action
1 parent da1fc3b commit 59ccb71

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/artifact.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010
RUSTFLAGS: -Dwarnings
1111

1212
jobs:
13-
build_and_test:
14-
name: Build and test
13+
build_and_release:
14+
name: Build artifact and release
1515
runs-on: ubuntu-20.04
1616

1717
steps:
@@ -49,10 +49,20 @@ jobs:
4949
name: function.zip
5050
path: ${{ github.workspace }}/build.function/
5151

52-
- name: Release
53-
uses: fnkr/github-action-ghr@v1
52+
# - name: Release
53+
# uses: fnkr/github-action-ghr@v1
54+
# if: startsWith(github.ref, 'refs/tags/')
55+
# env:
56+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
# GHR_PATH: ${{ github.workspace }}/build.function/
58+
# GHR_COMPRESS: zip
59+
60+
- name: Release artifact
61+
uses: ncipollo/release-action@v1
5462
if: startsWith(github.ref, 'refs/tags/')
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
GHR_PATH: ${{ github.workspace }}/build.function/
58-
GHR_COMPRESS: zip
63+
with:
64+
token: ${{ secrets.GITHUB_TOKEN }}
65+
artifact: "${{ github.workspace }}/lambda/function.zip"
66+
body: |
67+
Body content of a release
68+
# omitBody: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ clean:
6666

6767
ci: build call zip
6868

69-
ci.artifact: build
69+
ci.artifact: build zip
7070

7171
ci.compliance:
7272
@echo "-- auditing"

0 commit comments

Comments
 (0)