diff --git a/.github/workflows/release-upload.yaml b/.github/workflows/release-upload.yaml index a9a1e3c17c1..88ff81b1018 100644 --- a/.github/workflows/release-upload.yaml +++ b/.github/workflows/release-upload.yaml @@ -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: @@ -100,3 +109,4 @@ jobs: cardano-node-*-win64.zip cardano-node-*-macos.tar.gz cardano-node-*-linux.tar.gz + cardano-node-*-sha256sums.txt