Skip to content

Commit 3ff492a

Browse files
committed
Add Github CI release workflow
1 parent 32fac71 commit 3ff492a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)