Skip to content

Commit

Permalink
CI: Use pypi trusted publish method
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Jul 14, 2023
1 parent a9e3c8a commit d373fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
name: Publish on PyPI
needs: [build]
runs-on: ubuntu-latest
permissions:
id-token: write
# release on every tag
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
steps:
Expand All @@ -54,7 +56,5 @@ jobs:
- name: Upload Wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
# repository_url: https://test.pypi.org/legacy/ # To test

0 comments on commit d373fdd

Please sign in to comment.