Skip to content

Commit 0b1669e

Browse files
authored
ci: fix wheel & sdist artifact uploading
1 parent aa7dffb commit 0b1669e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,17 @@ jobs:
2727
os: [ubuntu-latest, windows-latest, macos-latest]
2828

2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131

3232
- name: Build wheels
33-
uses: pypa/cibuildwheel@v2.16.5
33+
uses: pypa/cibuildwheel@v2.21.3
3434
env:
3535
CIBW_ARCHS_MACOS: "x86_64 arm64"
3636
PIP_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu"
3737

3838
- uses: actions/upload-artifact@v4
3939
with:
40+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
4041
path: ./wheelhouse/*.whl
4142

4243
build_sdist:
@@ -50,6 +51,7 @@ jobs:
5051

5152
- uses: actions/upload-artifact@v4
5253
with:
54+
name: cibw-sdist
5355
path: dist/*.tar.gz
5456

5557
PyPI:
@@ -59,10 +61,12 @@ jobs:
5961
runs-on: ubuntu-latest
6062

6163
steps:
62-
- uses: actions/download-artifact@v4.1.7
64+
- uses: actions/download-artifact@v4
6365
with:
6466
name: artifact
67+
pattern: cibw-*
6568
path: dist
69+
merge-multiple: true
6670
- name: Publish package
6771
uses: pypa/[email protected]
6872
with:

0 commit comments

Comments
 (0)