Skip to content

Commit

Permalink
Add checksum file creation to releases:
Browse files Browse the repository at this point in the history
This makes it safer for users to consume
Hook tarballs.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
  • Loading branch information
jacobweinstock committed Oct 5, 2023
1 parent afa8653 commit 38d6e9f
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
with:
name: hook-${{steps.commitid.outputs.short}}
path: out/${{steps.commitid.outputs.short}}/rel/hook_*.tar.gz

- uses: actions/upload-artifact@v3
with:
name: hook-${{steps.commitid.outputs.short}}
path: out/${{steps.commitid.outputs.short}}/rel/checksum.txt

publish-release-latest:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -106,12 +111,20 @@ jobs:
tag: latest
message: "Latest development build"

- name: Generate checksum
uses: jmgilman/actions-generate-checksum@v1
with:
method: sha512
patterns: hook_*.tar.gz

- name: Update latest release
uses: softprops/action-gh-release@v1
with:
name: Hook Latest Development Build
body: ${{env.RELEASE_NOTES}}
files: hook_*.tar.gz
files: |
hook_*.tar.gz
checksum.txt
prerelease: true
tag_name: latest

Expand Down Expand Up @@ -139,8 +152,16 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Generate checksum
uses: jmgilman/actions-generate-checksum@v1
with:
method: sha512
patterns: hook_*.tar.gz

- name: Update latest release
uses: softprops/action-gh-release@v1
with:
body: ${{env.RELEASE_NOTES}}
files: hook_*.tar.gz
files: |
hook_*.tar.gz
checksum.txt

0 comments on commit 38d6e9f

Please sign in to comment.