Skip to content

Commit dd63af1

Browse files
committed
use oidc to upload package to pypi
1 parent 224746c commit dd63af1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/python-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
release:
99
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
id-token: write
1013
steps:
1114
- uses: actions/checkout@v4
1215

@@ -22,7 +25,4 @@ jobs:
2225
run: python setup.py sdist bdist_wheel
2326

2427
- name: Publish package
25-
uses: pypa/gh-action-pypi-publish@master
26-
with:
27-
user: __token__
28-
password: ${{ secrets.pypi_password }}
28+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)