Skip to content

Commit 3b3b392

Browse files
authored
Update python-test_and_deploy.yml
Change to trusted publisher option
1 parent a32fa0f commit 3b3b392

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python-test_and_deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
deploy:
4545
name: Build and publish to TestPyPI
4646
runs-on: ubuntu-22.04
47+
environment: pypi
48+
permissions:
49+
id-token: write
4750
if: github.ref == 'refs/heads/main'
4851
steps:
4952
- uses: actions/checkout@v4
@@ -60,6 +63,4 @@ jobs:
6063
- name: Publish distribution to Test PyPI
6164
uses: pypa/gh-action-pypi-publish@release/v1
6265
with:
63-
user: __token__
64-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
6566
repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)