@@ -12,11 +12,12 @@ jobs:
1212 name : Build wheels on ${{ matrix.os }}
1313 runs-on : ${{ matrix.os }}
1414 strategy :
15+ fail-fast : false
1516 matrix :
1617 os : [ubuntu-latest, windows-latest, macos-latest, macos-13]
1718
1819 steps :
19- - uses : actions/checkout@v3
20+ - uses : actions/checkout@v4
2021 with :
2122 submodules : true
2223
@@ -25,31 +26,32 @@ jobs:
2526 with :
2627 output-dir : wheelhouse
2728
29+ - name : Verify clean directory
30+ run : git diff --exit-code
31+ shell : bash
32+
2833 - uses : actions/upload-artifact@v4
2934 with :
30- path : ./wheelhouse/*.whl
35+ name : cibw-wheels-${{ matrix.os }}
36+ path : wheelhouse/*.whl
3137
3238 build_sdist :
3339 name : Build SDist
3440 runs-on : ubuntu-latest
3541 steps :
36- - uses : actions/checkout@v3
42+ - uses : actions/checkout@v4
3743 with :
3844 submodules : true
3945
40- - uses : actions/setup-python@v4
41-
42- - name : Install deps
43- run : python -m pip install twine build
44-
4546 - name : Build SDist
46- run : python -m build -s
47+ run : pipx run build --sdist
4748
4849 - name : Check metadata
49- run : twine check dist/*
50+ run : pipx run twine check dist/*
5051
5152 - uses : actions/upload-artifact@v4
5253 with :
54+ name : cibw-sdist
5355 path : dist/*.tar.gz
5456
5557 upload_all :
@@ -59,14 +61,17 @@ jobs:
5961 if : github.event_name == 'release' && github.event.action == 'published'
6062
6163 steps :
62- - uses : actions/setup-python@v4
64+ - uses : actions/setup-python@v5
65+ with :
66+ python-version : " 3.x"
6367
64- - uses : actions/download-artifact@v2
68+ - uses : actions/download-artifact@v4
6569 with :
66- name : artifact
70+ pattern : cibw-*
71+ merge-multiple : true
6772 path : dist
6873
69- - uses : pypa/gh-action-pypi-publish@v1.4.2
74+ - uses : pypa/gh-action-pypi-publish@release/v1
7075 with :
7176 user : __token__
7277 password : ${{ secrets.PYPI_TOKEN }}
0 commit comments