Skip to content

Commit f0a4652

Browse files
committed
Use trusted publishing for PyPI releases
1 parent 4659ff9 commit f0a4652

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
1012
steps:
1113
- uses: actions/checkout@v2
1214
- name: Set up Python
@@ -21,6 +23,3 @@ jobs:
2123
run: python -m build
2224
- name: Publish a Python distribution to PyPI
2325
uses: pypa/gh-action-pypi-publish@release/v1
24-
with:
25-
user: __token__
26-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)