Skip to content

Commit

Permalink
Migrate from PyPI tokens to Trusted Publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 committed Sep 11, 2023
1 parent 2fccba0 commit 0c929a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ name: Publish

jobs:
publish:
environment: pypi
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest

steps:
Expand All @@ -30,5 +34,3 @@ jobs:
- name: Publish
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 0c929a1

Please sign in to comment.