Skip to content

Commit 535e98c

Browse files
committed
Use trusted publishing to pypi
1 parent 6540742 commit 535e98c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ jobs:
2020

2121
runs-on: ubuntu-latest
2222

23+
environment:
24+
name: pypi
25+
url: https://pypi.org/p/conformist
26+
27+
permissions:
28+
id-token: write
29+
2330
steps:
2431
- uses: actions/checkout@v4
2532
- name: Set up Python
@@ -32,8 +39,5 @@ jobs:
3239
pip install build
3340
- name: Build package
3441
run: python -m build
35-
- name: Publish package
36-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
37-
with:
38-
user: __token__
39-
password: ${{ secrets.PYPI_API_TOKEN }}
42+
- name: Publish package distributions to PyPI
43+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)