Skip to content

Commit d0dea70

Browse files
committed
use trusted publisher token for pyPI
1 parent 6f53516 commit d0dea70

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
deploy:
1515

1616
runs-on: ubuntu-latest
17-
17+
permissions:
18+
id-token: write
1819
steps:
1920
- uses: actions/checkout@v4
2021
- name: Set up Python
@@ -30,5 +31,3 @@ jobs:
3031
- name: Publish distribution 📦 to PyPI
3132
if: startsWith(github.ref, 'refs/tags')
3233
uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)