Skip to content

Commit 8dc692f

Browse files
authored
.github: Use Trusted Publishers for deploy (#163)
1 parent 1edbf2b commit 8dc692f

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
@@ -8,6 +8,10 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010

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

0 commit comments

Comments
 (0)