Skip to content

Commit

Permalink
ci: Switch to trusted publishing for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Oct 20, 2023
1 parent 633d80c commit 7a74328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
deploy:

runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- uses: actions/checkout@v4
Expand All @@ -30,6 +33,3 @@ jobs:
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 7a74328

Please sign in to comment.