Skip to content

Commit

Permalink
chore: fix uploading different feature artifacts to same path
Browse files Browse the repository at this point in the history
The new actions/upload-artifact@4 throws an error when
multiple artifacts with the same name are uploaded within
the same workflow run.

Because we build multiple binaries with different features
enabled, we need to upload to separate archive names now.
  • Loading branch information
alcroito committed Apr 23, 2024
1 parent f512f92 commit f8b824b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -468,5 +468,5 @@ jobs:
- name: Upload archive
uses: actions/upload-artifact@master
with:
name: ${{ env.ARTIFACT_NAME }}-${{ env.RELEASE_VERSION }}-${{ matrix.rust_target_arch }}-${{ github.run_id }}.tar.gz
name: ${{ env.ARTIFACT_NAME }}-${{ env.RELEASE_VERSION }}-${{ matrix.rust_target_arch }}-feat-${{ matrix.build }}-${{ github.run_id }}.tar.gz
path: ${{ steps.create_staging_archive.outputs.archive_name }}

0 comments on commit f8b824b

Please sign in to comment.