Skip to content

Commit 429e9d1

Browse files
committed
update publish workflow
1 parent d2d4d17 commit 429e9d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/py-publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
deploy:
2020

2121
runs-on: ubuntu-latest
22+
environment: release
23+
permissions:
24+
id-token: write
2225

2326
steps:
2427
- uses: actions/checkout@v3
@@ -34,5 +37,3 @@ jobs:
3437
run: python -m build
3538
- name: Publish a Python distribution to PyPI
3639
uses: pypa/gh-action-pypi-publish@release/v1
37-
with:
38-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)