Skip to content

Commit

Permalink
perf(ci): use Trusted Publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
cnfatal committed Oct 30, 2024
1 parent ac73c99 commit 9110f8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ permissions:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -33,6 +35,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 9110f8c

Please sign in to comment.