Skip to content

Commit

Permalink
Add cross OS checksums (#4596)
Browse files Browse the repository at this point in the history
* feat: add optional/retry/safe/tested checksum

* fix: wrong step && artifacts names

---------

Co-authored-by: AurelienFT <32803821+AurelienFT@users.noreply.github.com>
  • Loading branch information
aoudiamoncef and AurelienFT authored Apr 2, 2024
1 parent df156f3 commit 9df5bb4
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,49 @@ jobs:
tar czvf massa_${GITHUB_REF/refs\/tags\//}_${{ matrix.name }} massa
fi
cd -
- name: Publish
- name: Upload ${{ matrix.os }}_${{ matrix.platform }} artifacts
uses: actions/upload-artifact@v4
with:
name: massa_artifacts_${{ matrix.name }}
path: |
massa_*.zip
massa_*.tar.gz
if-no-files-found: error
- name: Publish ${{ matrix.os }}_${{ matrix.platform }} artifacts
uses: softprops/action-gh-release@v1
with:
files: |
massa_*.zip
massa_*.tar.gz
checksum:
needs: release
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Move all artifacts to workspace
run: |
source_directory="artifacts"
release_directory="${{ github.workspace }}"
zip_pattern="massa_*.zip"
tar_pattern="massa_*.tar.gz"
mkdir -p "$release_directory"
find "$source_directory" -type f \( -name "$zip_pattern" -o -name "$tar_pattern" \) -exec mv -t "$release_directory" {} +
- name: Generate checksums file
uses: jmgilman/actions-generate-checksum@v1
with:
method: sha256
patterns: |
massa_*.zip
massa_*.tar.gz
output: checksums.txt
- name: Publish checksums file
uses: softprops/action-gh-release@v1
with:
files: 'massa_*'
files: |
checksums.txt

0 comments on commit 9df5bb4

Please sign in to comment.