We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32fac71 commit 3ff492aCopy full SHA for 3ff492a
.github/workflows/release.yml
@@ -0,0 +1,24 @@
1
+name: Release
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ # Publish on any tag starting with a `v`, e.g. v1.2.3
7
+ - v*
8
9
+jobs:
10
+ release:
11
+ name: Publish to PyPI
12
+ if: success() && startsWith(github.ref, 'refs/tags/')
13
+ runs-on: ubuntu-latest
14
+ # Environment and permissions trusted publishing.
15
+ environment:
16
+ # Create this environment in the GitHub repository under Settings -> Environments
17
+ name: release
18
+ permissions:
19
+ id-token: write
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - uses: astral-sh/setup-uv@v3
23
+ - run: uv build
24
+ - run: uv publish --trusted-publishing always
0 commit comments