Skip to content

Commit

Permalink
use OIDC to publish to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed Dec 30, 2023
1 parent 0a0064e commit cc02e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ env:
jobs:
pypi:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

Expand All @@ -31,5 +33,3 @@ jobs:
- name: Publish package
if: ${{ env.PUBLISH_TO_PYPI == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')}}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PUBLISH_API_KEY }}

0 comments on commit cc02e0c

Please sign in to comment.