diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9253c4b4eb..c906dfe220 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -288,26 +288,24 @@ 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: | - for output in fpm-*/fpm*; do - pushd $(dirname "$output") + cd fpm-cd-artifacts + for output in fpm-*; do mv -v $(basename $output) $(basename $output | sed -E '${{ env.replace }}') - popd done env: replace: 's/-([0-9]+\.[0-9]+\.[0-9]+-[0-9]+-g)?[0-9a-f]+//' - name: Create SHA256 checksums run: | - for output in fpm-*/fpm*; do - pushd $(dirname "$output") + cd fpm-cd-artifacts + for output in fpm-*; do sha256sum $(basename "$output") | tee $(basename "$output").sha256 - popd done - name: Move/Create continuous tag @@ -321,7 +319,7 @@ jobs: if: ${{ github.event_name == 'release' || steps.deploy-on-push.outputs.result != 0 }} 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