Skip to content

Commit 552841c

Browse files
committed
Migrate GHA to trusted publisher
Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent ee16e42 commit 552841c

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
@@ -44,6 +44,11 @@ jobs:
4444
runs-on: ubuntu-latest
4545
needs: test
4646
if: github.event_name == 'push'
47+
environment:
48+
name: pypi
49+
url: https://pypi.org/p/click-man
50+
permissions:
51+
id-token: write
4752
steps:
4853
- name: Checkout source code
4954
uses: actions/checkout@v4
@@ -60,8 +65,6 @@ jobs:
6065
- name: Publish distribution to PyPI
6166
if: startsWith(github.ref, 'refs/tags')
6267
uses: pypa/gh-action-pypi-publish@release/v1
63-
with:
64-
password: ${{ secrets.PYPI_API_TOKEN }}
6568
- name: Create release on GitHub
6669
id: create_release
6770
if: startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)