File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,48 +17,54 @@ jobs:
1717 arch : x86_64
1818 - os : macos-latest
1919 arch : arm64
20- - os : ubuntu-latest
21- arch : ' * ' # unused
20+ - os : ubuntu-22.04
21+ arch : ' any ' # unused
2222 - os : windows-latest
23- arch : ' * ' # unused
23+ arch : ' any ' # unused
2424
2525 steps :
2626 - uses : actions/checkout@v3
2727
2828 - name : Build wheels
29- uses : pypa/cibuildwheel@v2.16.5
29+ uses : pypa/cibuildwheel@v2.23.1
3030 env :
3131 CIBW_ARCHS_MACOS : ${{ matrix.arch }}
3232
33- - uses : actions/upload-artifact@v3
33+ - name : List wheels
34+ run : ls -l ./wheelhouse
35+
36+ - uses : actions/upload-artifact@v4
3437 with :
38+ name : artifact-${{ matrix.os }}-${{ matrix.arch }}
3539 path : ./wheelhouse/*.whl
3640
3741 build_sdist :
3842 name : Build source distribution
39- runs-on : ubuntu-latest
43+ runs-on : ubuntu-22.04
4044 steps :
4145 - uses : actions/checkout@v3
4246
4347 - name : Build sdist
4448 run : pipx run build --sdist
4549
46- - uses : actions/upload-artifact@v3
50+ - uses : actions/upload-artifact@v4
4751 with :
52+ name : artifact-sdist
4853 path : dist/*.tar.gz
4954
5055 PyPI :
5156 name : Upload to PyPI
5257
5358 needs : [build_wheels, build_sdist]
54- runs-on : ubuntu-latest
59+ runs-on : ubuntu-22.04
5560 permissions :
5661 id-token : write
5762
5863 steps :
59- - uses : actions/download-artifact@v3
64+ - uses : actions/download-artifact@v4
6065 with :
61- name : artifact
66+ pattern : artifact*
6267 path : dist
68+ merge-multiple : true
6369 - name : Publish package
6470 uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -32,14 +32,10 @@ jobs:
3232 - uses : actions/checkout@v3
3333
3434 - name : Build wheels
35- uses : pypa/cibuildwheel@v2.16.5
35+ uses : pypa/cibuildwheel@v2.23.2
3636 env :
3737 CIBW_ARCHS_MACOS : ${{ matrix.arch }}
3838
39- - uses : actions/upload-artifact@v3
40- with :
41- path : ./wheelhouse/*.whl
42-
4339 build_sdist :
4440 name : Build source distribution
4541 runs-on : ubuntu-latest
4844
4945 - name : Build sdist
5046 run : pipx run build --sdist
51-
52- - uses : actions/upload-artifact@v3
53- with :
54- path : dist/*.tar.gz
You can’t perform that action at this time.
0 commit comments