Skip to content

Commit 93bf25c

Browse files
committed
Use trusted publisher
1 parent dd0327a commit 93bf25c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ on:
33
release:
44
types: [created]
55

6+
permissions:
7+
id-token: write # Required for OIDC
8+
deployments: write
9+
contents: read
10+
611
jobs:
712
publish:
813
name: Publish
14+
environment: production
915
runs-on: ubuntu-latest
1016
env:
1117
TARGET_URL: https://pypi.org/project/patch-api/
@@ -49,9 +55,6 @@ jobs:
4955
5056
- name: Publish a Python distribution to PyPI
5157
uses: pypa/gh-action-pypi-publish@release/v1
52-
with:
53-
user: __token__
54-
password: ${{ secrets.PYPI_API_TOKEN }}
5558

5659
- name: Update deployment status (success)
5760
if: success()

0 commit comments

Comments
 (0)