File tree Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,13 @@ jobs:
7575 name : cibw-wheels-x86-${{ matrix.os }}-${{ strategy.job-index }}
7676 path : ./wheelhouse/*.whl
7777
78- publish :
79- name : Publish on PyPI
78+ test- publish :
79+ name : Upload release to TestPyPI
8080 needs : [build-sdist, build-wheels]
81- runs-on : ubuntu-24.04
81+ runs-on : ubuntu-latest
82+ environment : test-pypi
83+ permissions :
84+ id-token : write
8285 steps :
8386 - uses : actions/download-artifact@v4
8487 with :
@@ -87,11 +90,22 @@ jobs:
8790 merge-multiple : true
8891 - uses : pypa/gh-action-pypi-publish@release/v1
8992 with :
90- user : __token__
91- password : ${{ secrets.PYPI_API_TOKEN }}
92- # For publishing to Test PyPI, uncomment next two lines:
93- # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
94- # repository_url: https://test.pypi.org/legacy/
93+ repository-url : https://test.pypi.org/legacy/
94+
95+ publish :
96+ name : Upload release to PyPI
97+ needs : [build-sdist, build-wheels, test-publish]
98+ runs-on : ubuntu-latest
99+ environment : pypi
100+ permissions :
101+ id-token : write
102+ steps :
103+ - uses : actions/download-artifact@v4
104+ with :
105+ pattern : cibw-*
106+ path : dist
107+ merge-multiple : true
108+ - uses : pypa/gh-action-pypi-publish@release/v1
95109
96110 publish-docs :
97111 name : Publish docs
You can’t perform that action at this time.
0 commit comments