Skip to content

Commit 5b52eb5

Browse files
authored
Update python-publish.yml
1 parent de5681e commit 5b52eb5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
deploy:
1919

2020
runs-on: ubuntu-latest
21-
21+
permissions:
22+
# IMPORTANT: this permission is mandatory for trusted publishing
23+
id-token: write
2224
steps:
2325
- uses: actions/checkout@v3
2426
- name: Set up Python
@@ -33,6 +35,3 @@ jobs:
3335
run: python -m build
3436
- name: Publish package
3537
uses: pypa/gh-action-pypi-publish@release/v1
36-
with:
37-
user: ${{ secrets.PYPI_USERNAME }}
38-
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)