11name : Publish to PyPI
22
33on :
4- release :
5- types : [published]
4+ push :
5+ branches :
6+ - main
67
78jobs :
89 build :
@@ -12,24 +13,20 @@ jobs:
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
18- - name : Set up Python
19- uses : actions/setup-python@v4
20- with :
21- python-version : 3.11
18+ - uses : actions/setup-python@v5
2219
2320 - name : Install build tools
24- run : pip install build twine wheel cibuildwheel
21+ run : python -m pip install cibuildwheel
2522
2623 - name : Build wheel with cibuildwheel
2724 env :
28- CIBW_BUILD : cp37-*, cp38-*, cp39-*, cp310-*, cp311-*, cp312-*, cp313-*, cp314-*
29- run : cibuildwheel --output-dir wheelhouse
25+ CIBW_BUILD : " cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
26+ run : python -m cibuildwheel --output-dir wheelhouse
3027
3128 - name : Upload wheels
32- uses : actions/upload-artifact@v3
29+ uses : actions/upload-artifact@v4
3330 with :
3431 name : wheels-${{ matrix.os }}
3532 path : wheelhouse/
@@ -40,20 +37,22 @@ jobs:
4037
4138 steps :
4239 - name : Download wheels
43- uses : actions/download-artifact@v3
40+ uses : actions/download-artifact@v4
4441 with :
4542 name : wheels-ubuntu-latest
43+
4644 - name : Download wheels
47- uses : actions/download-artifact@v3
45+ uses : actions/download-artifact@v4
4846 with :
4947 name : wheels-windows-latest
48+
5049 - name : Download wheels
51- uses : actions/download-artifact@v3
50+ uses : actions/download-artifact@v4
5251 with :
5352 name : wheels-macos-latest
5453
55- - name : Combine wheels
56- run : mkdir dist && mv wheelhouse/* dist/
54+ # - name: Combine wheels
55+ # run: mkdir dist && mv wheelhouse/* dist/
5756
5857 - name : Publish to PyPI
59- run : ls -la dist
58+ run : ls -la
0 commit comments