Skip to content

Commit a6e47e9

Browse files
committed
[CI] Authorized publisher approach for pypi
1 parent 5ff9dba commit a6e47e9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish_wheels.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') ||
2828
(github.event_name == 'workflow_dispatch')
2929
runs-on: ubuntu-latest
30+
environment: pypi
31+
permissions:
32+
id-token: write
3033
steps:
3134
- uses: actions/checkout@v3
3235
with:
@@ -133,8 +136,6 @@ jobs:
133136
- name: Publish to TestPyPI
134137
uses: pypa/gh-action-pypi-publish@release/v1
135138
with:
136-
user: __token__
137-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
138139
repository-url: https://test.pypi.org/legacy/
139140
packages-dir: dist_filtered/
140141

0 commit comments

Comments
 (0)