Skip to content

Commit d25d3f2

Browse files
committed
Add release workflow
1 parent 800a810 commit d25d3f2

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/release.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v4
20+
with:
21+
enable-cache: true
22+
23+
- name: Set up Python
24+
run: uv python install
25+
26+
- name: Install dependencies
27+
run: uv sync
28+
29+
- name: Build package
30+
run: uv build
31+
32+
- name: Create GitHub Release
33+
uses: softprops/action-gh-release@v2
34+
with:
35+
files: dist/*
36+
generate_release_notes: true
37+
38+
- name: Publish to PyPI
39+
run: uv publish
40+
env:
41+
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)