We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb334b5 commit 55e352dCopy full SHA for 55e352d
1 file changed
.github/workflows/release.yml
@@ -0,0 +1,36 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
8
+jobs:
9
+ build-and-publish:
10
+ name: Build and publish package
11
+ runs-on: ubuntu-latest
12
13
+ permissions:
14
+ id-token: write # Required for PyPI trusted publishing
15
+ contents: read
16
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v4
20
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v7
23
+ with:
24
+ enable-cache: true
25
26
+ - name: Install Python
27
+ run: uv python install 3.13
28
29
+ - name: Build distributions (sdist + wheel)
30
+ run: uv build
31
32
+ - name: Publish to PyPI
33
+ uses: pypa/gh-action-pypi-publish@release/v1
34
35
+ verbose: true
36
0 commit comments