File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ jobs:
154154 name : Deploy packages
155155 runs-on : ubuntu-latest
156156 needs : test-wheels
157+ permissions :
158+ id-token : write
159+ contents : read
157160
158161 steps :
159162 - name : Setup Python ${{ matrix.python-version }}
@@ -190,14 +193,8 @@ jobs:
190193
191194 - name : Upload packages to testpypi
192195 if : ${{ !startsWith(github.ref, 'refs/tags/') }}
193- env :
194- TWINE_USERNAME : ${{ secrets.PYPI_TEST_TOKEN_NAME }}
195- TWINE_PASSWORD : ${{ secrets.PYPI_TEST_API_TOKEN }}
196196 run : python -m twine upload --skip-existing --repository testpypi dist/* --verbose
197197
198198 - name : Upload packages to pypi
199199 if : startsWith(github.ref, 'refs/tags/')
200- env :
201- TWINE_USERNAME : ${{ secrets.PYPI_PROD_TOKEN_NAME }}
202- TWINE_PASSWORD : ${{ secrets.PYPI_PROD_API_TOKEN }}
203200 run : python -m twine upload --skip-existing dist/* --verbose
You can’t perform that action at this time.
0 commit comments