11name : Publish to PyPI
22
33on :
4- release :
5- types : [published]
4+ push :
5+ branches :
6+ - main
67
78jobs :
89 build :
1213 os : [ubuntu-latest, windows-latest, macos-latest]
1314
1415 steps :
15- - name : Checkout code
16- uses : actions/checkout@v3
16+ - uses : actions/checkout@v4
1717
1818 - name : Set up Python
1919 uses : actions/setup-python@v4
@@ -25,11 +25,12 @@ jobs:
2525
2626 - name : Build wheel with cibuildwheel
2727 env :
28- CIBW_BUILD : cp37-*,cp38-*,cp39-*,cp310-*,cp311-*,cp312-*,cp313-*,cp314-*
28+ CIBW_BUILD : " cp37-*,cp38-*,cp39-*,cp310-*,cp311-*,cp312-*,cp313-*,cp314-*"
29+ CIBW_SKIP : " *pypy*"
2930 run : cibuildwheel --output-dir wheelhouse
3031
3132 - name : Upload wheels
32- uses : actions/upload-artifact@v3
33+ uses : actions/upload-artifact@v4
3334 with :
3435 name : wheels-${{ matrix.os }}
3536 path : wheelhouse/
@@ -40,15 +41,17 @@ jobs:
4041
4142 steps :
4243 - name : Download wheels
43- uses : actions/download-artifact@v3
44+ uses : actions/download-artifact@v4
4445 with :
4546 name : wheels-ubuntu-latest
47+
4648 - name : Download wheels
47- uses : actions/download-artifact@v3
49+ uses : actions/download-artifact@v4
4850 with :
4951 name : wheels-windows-latest
52+
5053 - name : Download wheels
51- uses : actions/download-artifact@v3
54+ uses : actions/download-artifact@v4
5255 with :
5356 name : wheels-macos-latest
5457
0 commit comments