Skip to content

Commit 5e1cee5

Browse files
committed
chore: add release workflow to ci
1 parent 25e8f98 commit 5e1cee5

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)