Skip to content

Commit

Permalink
Adjust id-token permission for pypa publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
braniii committed May 30, 2024
1 parent aba2671 commit a84b74f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ permissions:
contents: read

jobs:
deploy:

pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/prettypyplot
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit a84b74f

Please sign in to comment.