Skip to content

Commit ab0c833

Browse files
committed
Use PyPi Trusted Publisher auth
1 parent 377dd51 commit ab0c833

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name: PyPi Publish
22

33
on:
44
workflow_call:
5-
secrets:
6-
PYPI_API_TOKEN:
7-
required: true
85

96
jobs:
107
publish:
118
runs-on: ubuntu-latest
9+
environment: release
10+
permissions:
11+
id-token: write
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Set up Python
@@ -23,5 +23,3 @@ jobs:
2323
run: |
2424
python -m build
2525
- uses: pypa/gh-action-pypi-publish@release/v1
26-
with:
27-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)