Skip to content

Commit 636494c

Browse files
authored
Publish to PyPI using Trusted Publisher
Twine [supports Trusted Publisher](pypa/twine#1194), but their documentation is a bit sparse.
1 parent 440651d commit 636494c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: write
17+
id-token: write
1718
steps:
1819
- name: Checkout the repository
1920
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
@@ -40,7 +41,6 @@ jobs:
4041
- name: Push releases to PyPI
4142
env:
4243
TWINE_USERNAME: __token__
43-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
4444
run: uv run make release && uv run make release_analytics
4545

4646
- name: Create GitHub release

0 commit comments

Comments
 (0)