-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add unique artificat names to upload/download action
v4+ requires unique artifact names, so add a qualifier including the matrix name to the artifact. Then download all the cibw-* artifacts and merge them into a common directory for upload to PyPI.
- Loading branch information
Showing
1 changed file
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,7 +52,7 @@ jobs: | |
- name: Upload sdist result | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sdist | ||
name: cibw-sdist | ||
path: dist/*.tar.gz | ||
if-no-files-found: error | ||
|
||
|
@@ -110,7 +110,7 @@ jobs: | |
- name: Download sdist | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: sdist | ||
name: cibw-sdist | ||
path: dist | ||
|
||
- uses: pypa/cibuildwheel@ce3fb7832089eb3e723a0a99cab7f3eaccf074fd # v2.16.5 | ||
|
@@ -120,6 +120,7 @@ jobs: | |
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: cibw-wheels-${{ matrix.os }}-${{ matrix.only }} | ||
path: ./wheelhouse/*.whl | ||
|
||
publish: | ||
|
@@ -138,14 +139,9 @@ jobs: | |
- name: Download wheels | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- name: Download sdist | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: sdist | ||
pattern: cibw-* | ||
path: dist | ||
merge-multiple: true | ||
|
||
- name: Publish Package | ||
uses: pypa/[email protected] |