Skip to content
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
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,18 @@ jobs:
cd target/${{ matrix.target }}/release
Compress-Archive -Path *singularity_language_registry* -DestinationPath ../../../${{ matrix.artifact_name }}.zip

- name: Generate artifact attestation (Unix)
if: runner.os != 'Windows'
uses: actions/attest-build-provenance@v2
with:
subject-path: ${{ matrix.artifact_name }}.tar.gz

- name: Generate artifact attestation (Windows)
if: runner.os == 'Windows'
uses: actions/attest-build-provenance@v2
with:
subject-path: ${{ matrix.artifact_name }}.zip

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -466,13 +478,21 @@ jobs:
- name: Download all artifacts
uses: actions/download-artifact@v4

- name: Generate SHA256 checksums for binaries
run: |
find . -name "*.tar.gz" -o -name "*.zip" | while read file; do
sha256sum "$file" >> BINARY_SHA256SUMS
done
cat BINARY_SHA256SUMS || echo "No binary artifacts found"

- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ needs.validate.outputs.version }}
files: |
**/*.tar.gz
**/*.zip
BINARY_SHA256SUMS

notify:
name: Notify Release
Expand Down
Loading