Skip to content

Commit

Permalink
ci: checkout CD artifacts in isolated directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Jun 9, 2024
1 parent 70ae194 commit 02c62bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 02c62bc

Please sign in to comment.