Skip to content

Commit

Permalink
ci(wheels): Use new pypi "trusted publisher" workflow
Browse files Browse the repository at this point in the history
No PYPI_API_TOKEN secret needed -- see https://docs.pypi.org/trusted-publishers/using-a-publisher/

Signed-off-by: Zach Lewis <[email protected]>
  • Loading branch information
zachlewis committed Sep 16, 2024
1 parent c9d8178 commit 22b5627
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ jobs:
upload_pypi:
needs: [sdist, linux, macos, windows]
runs-on: ubuntu-latest
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/setup-python@v5
Expand All @@ -311,7 +313,4 @@ jobs:
path: dist
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 22b5627

Please sign in to comment.