File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed
Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 1010 RUSTFLAGS : -Dwarnings
1111
1212jobs :
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
Original file line number Diff line number Diff line change 6666
6767ci : build call zip
6868
69- ci.artifact : build
69+ ci.artifact : build zip
7070
7171ci.compliance :
7272 @echo " -- auditing"
You can’t perform that action at this time.
0 commit comments