From 37c95ba82b7021b5a26f92e0810d055fb2621238 Mon Sep 17 00:00:00 2001 From: Moncef AOUDIA Date: Fri, 15 Dec 2023 18:29:09 +0100 Subject: [PATCH] refactor: play with artifacts and release --- .github/workflows/cd.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8316021fe8..873a7485e1 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -76,6 +76,13 @@ 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 @@ -83,15 +90,20 @@ jobs: 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