Skip to content

Commit

Permalink
feat: add checksum handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef committed Dec 15, 2023
1 parent d8da8ae commit a0b4e3e
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
workflow_dispatch:

env:
ACTIONS_RUNNER_DEBUG: true
ACTIONS_STEP_DEBUG: true
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

Expand Down Expand Up @@ -66,19 +68,39 @@ jobs:
tar czvf massa_${{ matrix.name }} massa
fi
cd -
- name: Publish massa artifacts
- name: Upload ${{ matrix.name }} 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.name }} 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:
Expand All @@ -91,4 +113,4 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
checksums.txt
checksums.txt

0 comments on commit a0b4e3e

Please sign in to comment.