Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Use trusted publisher not token
  • Loading branch information
jbousquin authored Aug 21, 2024
1 parent 0ed9749 commit 062502a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
publish-to-pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment: pypi
environment:
name: pypi
url: https://pypi.org/p/harmonize-wq
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'
Expand All @@ -59,6 +61,3 @@ jobs:
#path: dist

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

0 comments on commit 062502a

Please sign in to comment.