Skip to content

Commit

Permalink
Add a step to calculate SHA256 checksum for the release artifacts (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
manu-ns committed Jul 15, 2024
1 parent 1393531 commit 278d4b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ jobs:
- name: Calculate SHA256
run: |
shasum -a 256 ./out/* > ./out/SHA256SUMS.txt
shasum -a 256 ./out/* > ./out/SHA256SUMS-${{ matrix.goos }}-${{ matrix.goarch }}.txt
shell: bash

- uses: actions/upload-artifact@v4
with:
name: binaries-and-checksums
name: ${{ env.archive_name }}
path: ./out/*

create-release:
Expand All @@ -148,17 +148,17 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: binaries-and-checksums
name: ${{ env.archive_name }}
path: artifacts

- name: Generate Release Notes
id: generate_release_notes
run: |
echo "## SHA256 Checksums" > release_notes.md
cat artifacts/SHA256SUMS.txt >> release_notes.md
find artifacts -name "SHA256SUMS-*.txt" -exec cat {} \; >> release_notes.md
- name: Release
uses: softprops/action-gh-release@v2
with:
files: artifacts/**
files: artifacts/**/*.*
body_path: release_notes.md

0 comments on commit 278d4b8

Please sign in to comment.