Skip to content

Commit 6d8d974

Browse files
authored
Trusted publish to pypi
1 parent dc658aa commit 6d8d974

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
deploy:
1919

2020
runs-on: ubuntu-latest
21+
environment:
22+
name: pypi
23+
url: https://pypi.org/p/cflib
24+
permissions:
25+
id-token: write
2126

2227
steps:
2328
- uses: actions/checkout@v4
@@ -34,5 +39,4 @@ jobs:
3439
- name: Publish package
3540
uses: pypa/gh-action-pypi-publish@release/v1
3641
with:
37-
username: __token__
38-
password: ${{ secrets.PYPI_TOKEN }}
42+
verbose: true

0 commit comments

Comments
 (0)