Skip to content

Commit 58473a8

Browse files
committed
Migrate to trusted publishing
Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 0d4f938 commit 58473a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ jobs:
6666
runs-on: ubuntu-latest
6767
needs: test
6868
if: github.event_name == 'push'
69+
environment:
70+
name: pypi
71+
url: https://pypi.org/p/sphinx-click
72+
permissions:
73+
id-token: write
6974
steps:
7075
- name: Checkout source code
7176
uses: actions/checkout@v5
@@ -83,5 +88,3 @@ jobs:
8388
- name: Publish distribution to PyPI
8489
if: startsWith(github.ref, 'refs/tags')
8590
uses: pypa/gh-action-pypi-publish@release/v1
86-
with:
87-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)