Skip to content

Commit

Permalink
enanced edition
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef authored Dec 15, 2023
1 parent 9720cc6 commit cb846ba
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,20 @@ 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 of the artifact to upload.
# Optional. Default is 'artifact'
name: massa_artifacts_${{ matrix.name }}
path: |
massa_*.zip
massa_*.tar.gz
massa_*.zip
massa_*.tar.gz
if-no-files-found: error
- name: Publish release
- name: Publish ${{ matrix.name }} artifacts
uses: softprops/action-gh-release@v1
with:
with:
files: |
massa_*.zip
massa_*.tar.gz
massa_*.zip
massa_*.tar.gz
checksum:
needs: release
Expand All @@ -94,24 +92,25 @@ jobs:
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Extract 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" -o -name "*.gz" \) -exec mv -t "$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
massa_*.zip
massa_*.tar.gz
output: checksums.txt
- name: Publish checksums file
uses: softprops/action-gh-release@v1
with:
files: |
checksums.txt
checksums.txt

0 comments on commit cb846ba

Please sign in to comment.