Skip to content

Commit d256508

Browse files
authored
Update release.py to use trusted publisher status for publishing instead of user/password
1 parent a00cc06 commit d256508

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
# For pypi trusted publishing
12+
id-token: write
1013
strategy:
1114
max-parallel: 1
1215
matrix:
@@ -30,6 +33,8 @@
3033
- name: Publish package
3134
uses: pypa/gh-action-pypi-publish@master
3235
with:
33-
user: __token__
34-
password: ${{ secrets.PYPI_API_TOKEN }}
36+
# user: __token__
37+
# password: ${{ secrets.PYPI_API_TOKEN }}
38+
skip-existing: true
39+
verbose: true
3540
packages_dir: dist/

0 commit comments

Comments
 (0)