Skip to content

Commit 8255fbf

Browse files
Set up trusted publishing
I've added a [trusted publisher][1] to our PyPI org. This just completes the process, following the step below. Ref: https://docs.pypi.org/trusted-publishers/using-a-publisher/#github-actions [1]: https://docs.pypi.org/trusted-publishers/adding-a-publisher/
1 parent ab4ec31 commit 8255fbf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ jobs:
2929
path: dist/
3030

3131
publish:
32-
# TODO: trusted publisher
33-
# https://docs.astral.sh/uv/guides/publish/#publishing-your-package
3432
name: Publish on PyPI
3533
runs-on: ubuntu-latest
3634
environment:
3735
name: release
36+
permissions:
37+
# IMPORTANT: this permission is mandatory for Trusted Publishing
38+
id-token: write
3839
needs: build
3940
steps:
4041
- name: Checkout source
@@ -50,5 +51,3 @@ jobs:
5051

5152
- name: Publish on PyPI
5253
uses: pypa/gh-action-pypi-publish@release/v1
53-
with:
54-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)