Skip to content

Commit 0feb2a8

Browse files
committed
Use trusted publishing
1 parent 75a599a commit 0feb2a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/dist.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ jobs:
7070
runs-on: ubuntu-latest
7171
needs: [check, check-doc, test]
7272
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
73+
permissions:
74+
id-token: write
7375

7476
steps:
7577
- uses: actions/checkout@v4
@@ -86,6 +88,3 @@ jobs:
8688
run: python setup.py sdist bdist_wheel
8789
- name: Publish to PyPI
8890
uses: pypa/gh-action-pypi-publish@release/v1
89-
with:
90-
user: __token__
91-
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)