Skip to content

Commit

Permalink
ci: Switch to Trusted Publishing (OIDC auth) for pypa/gh-action-pypi-…
Browse files Browse the repository at this point in the history
…publish
  • Loading branch information
gfieni committed Apr 25, 2023
1 parent e1fe3e3 commit b50fb49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
name: Publish Pypi package
runs-on: ubuntu-latest
needs: github-release
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v3
Expand All @@ -75,8 +78,6 @@ jobs:
- name: Publish package
uses: pypa/gh-action-pypi-publish@0bf742be3ebe032c25dd15117957dc15d0cfc38d # v1.8.5
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
print-hash: true

docker-image:
Expand Down

0 comments on commit b50fb49

Please sign in to comment.