Skip to content

Commit

Permalink
Use PyPI Trusted Publishing
Browse files Browse the repository at this point in the history
This is the recommended way and allows us to avoid needing a token, which could be leaked.
  • Loading branch information
nicoddemus committed Nov 29, 2024
1 parent bb5f3b2 commit ec0235d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:

deploy:
runs-on: ubuntu-latest
permissions:
id-token: write

needs: package

Expand All @@ -28,10 +30,7 @@ jobs:
path: dist

- name: Publish package to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_token }}
uses: pypa/[email protected]

- name: Publish GitHub Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit ec0235d

Please sign in to comment.