Skip to content

Commit 5406745

Browse files
Ben Jefferymergify[bot]
authored andcommitted
Update pypi release auth
1 parent b45d065 commit 5406745

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)