We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c45fc5 + 65cec90 commit e0fc3edCopy full SHA for e0fc3ed
.github/workflows/publish-to-pypi.yml
@@ -8,6 +8,11 @@ jobs:
8
publish:
9
name: "Build & Publish"
10
runs-on: "ubuntu-latest"
11
+ # Specifying a GitHub environment is optional, but strongly encouraged
12
+ environment: "pypi"
13
+ permissions:
14
+ # IMPORTANT: this permission is mandatory for Trusted Publishing
15
+ id-token: "write"
16
steps:
17
- uses: "actions/checkout@v5"
18
- uses: "astral-sh/setup-uv@v6"
@@ -23,5 +28,3 @@ jobs:
23
28
run: "uv build"
24
29
- name: "Publish"
25
30
uses: "pypa/gh-action-pypi-publish@release/v1"
26
- with:
27
- password: "${{ secrets.PYPI_API_TOKEN }}"
0 commit comments