File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,10 @@ jobs:
216216
217217 PyPI_Upload :
218218 runs-on : ubuntu-latest
219+ environment : release
219220 needs : ['windows-test', 'OSX-test', 'manylinux-test']
221+ permissions :
222+ id-token : write
220223 steps :
221224 - name : Download all
222225 uses : actions/download-artifact@v2
@@ -226,12 +229,9 @@ jobs:
226229 cp */*.{whl,gz} dist/.
227230 - name : Publish distribution to Test PyPI
228231 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && !contains(github.event.ref, 'C_')
229- uses : pypa/gh-action-pypi-publish@master
232+ uses : pypa/gh-action-pypi-publish@release/v1
230233 with :
231- password : ${{ secrets.test_pypi_password }}
232234 repository_url : https://test.pypi.org/legacy/
233235 - name : Publish distribution to PRODUCTION PyPI
234236 if : github.event_name == 'release' && !startsWith(github.event.release.tag_name, 'C_')
235- uses : pypa/gh-action-pypi-publish@master
236- with :
237- password : ${{ secrets.pypi_password }}
237+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments