Skip to content

Commit

Permalink
fix: use truster publisher to release to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
browniebroke committed Oct 9, 2023
1 parent 7bd5f6b commit 8ec6a9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -58,6 +58,9 @@ jobs:
release:
runs-on: ubuntu-latest
environment: release
permissions:
# Use trusted publishing
id-token: write
needs:
- test
- commitlint
Expand Down Expand Up @@ -86,8 +89,6 @@ jobs:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
with:
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
Expand Down

0 comments on commit 8ec6a9d

Please sign in to comment.