Skip to content

Commit 56cbf82

Browse files
committed
Switch PyPI to Trusted Publisher
1 parent a9e9579 commit 56cbf82

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/pypi-package.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
permissions:
1616
contents: read
17+
id-token: write
1718

1819
jobs:
1920
# Always build & lint package.
@@ -46,7 +47,6 @@ jobs:
4647
- name: Upload package to Test PyPI
4748
uses: pypa/gh-action-pypi-publish@release/v1
4849
with:
49-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
5050
repository-url: https://test.pypi.org/legacy/
5151

5252
# Upload to real PyPI on GitHub Releases.
@@ -66,5 +66,3 @@ jobs:
6666

6767
- name: Upload package to PyPI
6868
uses: pypa/gh-action-pypi-publish@release/v1
69-
with:
70-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)