Skip to content

Commit

Permalink
release-upload: compute checksums of archives and add them to release…
Browse files Browse the repository at this point in the history
… assets
  • Loading branch information
smelc committed May 17, 2024
1 parent a0bb1fa commit 0caa849
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ jobs:
- uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Checksums
run: |
# find returns something like this:
# "cardano-node-8.11.0-linux.tar.gz cardano-node-8.11.0-macos.tar.gz ..."
# We use the first member of this list to compute the prefix "cardano-node-8.11.0"
first_archive=$(find . -maxdepth 1 -name "cardano-node-*" -printf '%P\n' | head -n 1)
# Then we trim the architecture-specific suffix (last "-" and after)
sha256sums_filename=$(echo "${first_archive%-*}-sha256sums.txt")
sha256sum cardano-node-* >> "$sha256sums_filename"
- name: Release
uses: input-output-hk/action-gh-release@v1
with:
Expand All @@ -100,3 +109,4 @@ jobs:
cardano-node-*-win64.zip
cardano-node-*-macos.tar.gz
cardano-node-*-linux.tar.gz
cardano-node-*-sha256sums.txt

0 comments on commit 0caa849

Please sign in to comment.