File tree Expand file tree Collapse file tree 1 file changed +3
-55
lines changed
Expand file tree Collapse file tree 1 file changed +3
-55
lines changed Original file line number Diff line number Diff line change 11name : Build and upload to PyPI
22
33on :
4- release :
5- types :
6- - published
7-
4+ push :
5+ branches :
6+ - " *"
87
98jobs :
10- build_wheels :
11- name : Build wheels for ${{ matrix.os }}
12- runs-on : ${{ matrix.runs-on }}
13- strategy :
14- matrix :
15- include :
16- - os : linux-intel
17- runs-on : ubuntu-latest
18- - os : linux-arm
19- runs-on : ubuntu-24.04-arm
20- - os : windows-intel
21- runs-on : windows-latest
22- - os : windows-arm
23- runs-on : windows-11-arm
24- - os : macos-intel
25- runs-on : macos-15-intel
26- - os : macos-arm
27- runs-on : macos-latest
28-
29- steps :
30- - uses : actions/checkout@v4
31- with :
32- submodules : true
33-
34- - name : Build wheels
35- uses : pypa/cibuildwheel@v3.2.0
36- env :
37- CIBW_PLATFORM : ${{ matrix.platform || 'auto' }}
38-
39- - uses : actions/upload-artifact@v4
40- with :
41- name : cibw-wheels-${{ matrix.os }}-${{ matrix.platform}}-${{ strategy.job-index }}
42- path : ./wheelhouse/*.whl
43-
44-
459 build_sdist :
4610 name : Build source distribution
4711 runs-on : ubuntu-latest
6024 path : dist/*.tar.gz
6125 retention-days : 1
6226 name : cibw-sdist
63-
64- upload_pypi :
65- needs : [build_wheels, build_sdist]
66- runs-on : ubuntu-latest
67- environment : release
68- permissions :
69- id-token : write
70- if : github.event_name == 'release' && github.event.action == 'published'
71- steps :
72- - uses : actions/download-artifact@v4
73- with :
74- pattern : cibw-*
75- path : dist
76- merge-multiple : true
77-
78- - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments