Skip to content

Commit

Permalink
use PyPI trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Feb 10, 2024
1 parent 7323d5b commit e9f0c05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit e9f0c05

Please sign in to comment.