From 02c62bcc389db8c342a93380062ed0f006696a9c Mon Sep 17 00:00:00 2001 From: gnikit Date: Sun, 9 Jun 2024 11:23:02 +0100 Subject: [PATCH] ci: checkout CD artifacts in isolated directory --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 461f2b6dfd..d55c190e75 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -130,12 +130,13 @@ jobs: - name: Download Artifacts uses: actions/download-artifact@v4 with: - path: ${{ github.workspace }} + path: fpm-cd-artifacts merge-multiple: true - name: Normalize file names for continuous delivery if: ${{ github.event_name == 'push' }} run: | + cd fpm-cd-artifacts for output in fpm-*; do mv -v $(basename $output) $(basename $output | sed -E '${{ env.replace }}') done @@ -144,6 +145,7 @@ jobs: - name: Create SHA256 checksums run: | + cd fpm-cd-artifacts for output in fpm-*; do sha256sum $(basename "$output") | tee $(basename "$output").sha256 done @@ -159,7 +161,7 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: fpm-*/fpm* + file: fpm-cd-artifacts/* file_glob: true tag: ${{ github.event_name == 'release' && github.ref || 'current'}} overwrite: true