Skip to content

Commit

Permalink
use oidc for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
zweckj committed Nov 9, 2024
1 parent 41234e6 commit 8a81428
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
# permissions:
# id-token: write
environment: pypi
permissions:
id-token: write
steps:

- name: Checkout
Expand All @@ -33,5 +34,3 @@ jobs:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 8a81428

Please sign in to comment.