diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2a0dd1..aa0d32a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,6 +85,13 @@ jobs: with: path: artifacts + - name: Generate SHA256 checksums + run: | + cd artifacts + find . -type f \( -name '*.tar.gz' -o -name '*.zip' \) -exec sha256sum {} + | sed 's| \./[^/]*/| |' > SHA256SUMS + echo "Generated checksums:" + cat SHA256SUMS + - name: Install cosign uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2 @@ -103,6 +110,8 @@ jobs: uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2 with: generate_release_notes: true - files: artifacts/**/* + files: | + artifacts/**/* + artifacts/SHA256SUMS env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}