Skip to content

Commit f7156b9

Browse files
committed
use PyPI trusted publishing
1 parent 658836c commit f7156b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
deploy:
5454
needs: test
5555
runs-on: ubuntu-latest
56+
environment: pypi
57+
permissions: {contents: write, id-token: write, packages: write}
5658
steps:
5759
- uses: actions/checkout@v4
5860
with: {fetch-depth: 0}
@@ -63,7 +65,6 @@ jobs:
6365
uses: casperdcl/deploy-pypi@v2
6466
with:
6567
build: true
66-
password: ${{ secrets.PYPI_TOKEN }}
6768
gpg_key: ${{ secrets.GPG_KEY }}
6869
upload: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
6970
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)