Skip to content

Commit

Permalink
Update release.py to use trusted publisher status for publishing inst…
Browse files Browse the repository at this point in the history
…ead of user/password
  • Loading branch information
matthewkuner authored Mar 20, 2024
1 parent a00cc06 commit d256508
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
# For pypi trusted publishing
id-token: write
strategy:
max-parallel: 1
matrix:
Expand All @@ -30,6 +33,8 @@
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true
verbose: true
packages_dir: dist/

0 comments on commit d256508

Please sign in to comment.