Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-upload: generate checksums of artifacts #5842

Merged
merged 2 commits into from
May 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/release-upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
cp result/cardano-node-*-*.zip .
;;
esac
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}-${{ matrix.arch }}
path: cardano-node-*-*.*
Expand All @@ -89,15 +89,18 @@ jobs:
name: "Upload Assets"
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ github.sha }}-linux
- uses: actions/download-artifact@v3
with:
name: ${{ github.sha }}-macos
- uses: actions/download-artifact@v3
with:
name: ${{ github.sha }}-win64
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 @@ -106,3 +109,4 @@ jobs:
cardano-node-*-win64.zip
cardano-node-*-macos.tar.gz
cardano-node-*-linux.tar.gz
cardano-node-*-sha256sums.txt
Loading