We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24485ce commit cffe288Copy full SHA for cffe288
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,32 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+# Minimal permissions required; id-token is mandatory for Trusted Publishing (OIDC)
8
+permissions:
9
+ contents: read
10
+ id-token: write
11
12
+jobs:
13
+ publish:
14
+ name: Build and publish to PyPI
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v4
22
+ with:
23
+ python-version: "3.12"
24
25
+ - name: Install uv
26
+ run: pip install uv
27
28
+ - name: Build distributions (sdist + wheel)
29
+ run: uv build
30
31
+ - name: Publish to PyPI with Trusted Publishing
32
+ run: uv publish --trusted-publishing always
0 commit comments