File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ jobs:
1616 os : [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-latest]
1717 steps :
1818 - uses : actions/checkout@v5
19- - uses : actions/setup-python@v5
20- - name : Install cibuildwheel
21- run : python -m pip install cibuildwheel
2219 - name : Build wheels
23- run : python -m cibuildwheel --output-dir wheelhouse
20+ uses : pypa/cibuildwheel@v3.2.1
21+ env :
22+ CIBW_PLATFORM : ${{ matrix.platform || 'auto' }}
23+ CIBW_ARCHS : ${{ matrix.archs || 'auto' }}
2424 - uses : actions/upload-artifact@v4
2525 with :
2626 name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
@@ -39,17 +39,14 @@ jobs:
3939 upload_pypi :
4040 needs : [build_wheels, build_sdist]
4141 runs-on : ubuntu-latest
42+ if : github.event_name == 'release' && github.event.action == 'published'
4243 environment : pypi
4344 permissions :
4445 id-token : write
45- if : github.event_name == 'release' && github.event.action == 'published'
4646 steps :
4747 - uses : actions/download-artifact@v5
4848 with :
4949 pattern : cibw-*
5050 path : dist
5151 merge-multiple : true
52- # - uses: pypa/gh-action-pypi-publish@release/v1
53- # To test uploads to TestPyPI, uncomment the following:
54- # with:
55- # repository-url: https://test.pypi.org/legacy/
52+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments