use PyPI trusted publishing

This commit is contained in:
Casper da Costa-Luis 2024-02-10 17:51:10 +00:00
parent 7323d5bcc9
commit e9f0c05097
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
1 changed files with 2 additions and 1 deletions

View File

@ -111,6 +111,8 @@ jobs:
deploy:
needs: [check, test]
runs-on: ubuntu-latest
environment: pypi
permissions: {contents: write, id-token: write, packages: write}
steps:
- uses: actions/checkout@v4
with:
@ -127,7 +129,6 @@ jobs:
- id: dist
uses: casperdcl/deploy-pypi@v2
with:
password: ${{ secrets.PYPI_TOKEN }}
gpg_key: ${{ secrets.GPG_KEY }}
upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
- id: collect_assets