Skip to content

Commit

Permalink
Fix artifact upload in pypi workflow
Browse files Browse the repository at this point in the history
Since actions/upload-artifact version 4, Artifacts are immutable and we
can't upload multiple times to the same. Fixing this issue using:
https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
  • Loading branch information
gbolmier committed Nov 24, 2024
1 parent dbb356d commit fead804
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.os }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -114,8 +115,19 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: artifact-sdist
path: dist/*.tar.gz

merge_artifacts:
runs-on: ubuntu-latest
needs: [build_wheels, build_sdist]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: artifact
pattern: artifact-*

upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
Expand Down

0 comments on commit fead804

Please sign in to comment.