Skip to content

Commit e2882bb

Browse files
switch to deploy environment and configure for pypi oidc
closes #10871 closes #10870
1 parent 76d1523 commit e2882bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ jobs:
1919

2020
runs-on: ubuntu-latest
2121
timeout-minutes: 30
22+
environment: deploy
2223
permissions:
2324
contents: write
25+
id-token: write # for pypi oidc publish
2426

2527
steps:
2628
- uses: actions/checkout@v3
@@ -39,8 +41,6 @@ jobs:
3941

4042
- name: Publish package to PyPI
4143
uses: pypa/gh-action-pypi-publish@release/v1
42-
with:
43-
password: ${{ secrets.pypi_token }}
4444

4545
- name: Set up Python
4646
uses: actions/setup-python@v4

0 commit comments

Comments
 (0)