Skip to content

Commit c36bcdd

Browse files
authored
Publish to PyPI using a trusted publisher (#300)
1 parent c2e1adb commit c36bcdd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
1212

13+
permissions:
14+
# IMPORTANT: this permission is mandatory for trusted publishing
15+
id-token: write
16+
1317
steps:
1418
- uses: actions/checkout@v3
1519
- name: Set up Python
@@ -27,6 +31,3 @@ jobs:
2731
- name: Publish distribution 📦 to PyPI
2832
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
2933
uses: pypa/gh-action-pypi-publish@release/v1
30-
with:
31-
user: __token__
32-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)