Skip to content

Commit 12adbec

Browse files
committed
try trusted publisher
1 parent cc754a9 commit 12adbec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
needs: [pre-commit, tests]
5151
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
5252
runs-on: ubuntu-latest
53+
permissions:
54+
# IMPORTANT: this permission is mandatory for trusted publishing
55+
id-token: write
5356
steps:
5457
- name: Checkout source
5558
uses: actions/checkout@v2
@@ -63,7 +66,4 @@ jobs:
6366
python setup.py sdist bdist_wheel
6467
- name: Publish
6568
uses: pypa/gh-action-pypi-publish@v1.1.0
66-
with:
67-
user: __token__
68-
password: "${{ secrets.PYPI_KEY }}"
6969

0 commit comments

Comments
 (0)