Skip to content

Commit

Permalink
refactor: play with artifacts and release
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef authored Dec 15, 2023
1 parent 41be60f commit 37c95ba
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,34 @@ jobs:
massa_*.zip
massa_*.tar.gz
if-no-files-found: error
- name: Publish release
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:
# run-id: ${{ github.run_id }}
- name: Create release directory
run: mkdir release
- name: Unzip artifacts
run: |
for file in massa_artifacts_*; do
unzip "$file" -d massa_release/
done
- name: Generate checksums file
uses: jmgilman/actions-generate-checksum@v1
with:
method: sha256
patterns: |
massa_*.zip
massa_*.tar.gz
massa_release/massa_*.zip
massa_release/massa_*.tar.gz
output: checksums.txt
- name: Publish checksums file
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 37c95ba

Please sign in to comment.