We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd0327a commit 93bf25cCopy full SHA for 93bf25c
1 file changed
.github/workflows/publish.yml
@@ -3,9 +3,15 @@ on:
3
release:
4
types: [created]
5
6
+permissions:
7
+ id-token: write # Required for OIDC
8
+ deployments: write
9
+ contents: read
10
+
11
jobs:
12
publish:
13
name: Publish
14
+ environment: production
15
runs-on: ubuntu-latest
16
env:
17
TARGET_URL: https://pypi.org/project/patch-api/
@@ -49,9 +55,6 @@ jobs:
49
55
50
56
- name: Publish a Python distribution to PyPI
51
57
uses: pypa/gh-action-pypi-publish@release/v1
52
- with:
53
- user: __token__
54
- password: ${{ secrets.PYPI_API_TOKEN }}
58
59
- name: Update deployment status (success)
60
if: success()
0 commit comments