File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on :
4+ pull_request :
5+ types : [opened]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Install uv
14+ uses : astral-sh/setup-uv@v5
15+
16+ - name : Set up Python
17+ run : uv python install 3.12
18+
19+ - name : Build
20+ run : uv sync && uv build
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Install uv
14+ uses : astral-sh/setup-uv@v5
15+
16+ - name : Set up Python
17+ run : uv python install 3.12
18+
19+ - name : Build
20+ run : uv sync && uv build
21+
22+ tag :
23+ needs : build
24+ runs-on : ubuntu-latest
25+ permissions :
26+ contents : write
27+ steps :
28+ - uses : actions/checkout@v4
29+ with :
30+ fetch-depth : 0
31+
32+ - name : Bump version and push tag
33+ id : tag_version
34+ uses : mathieudutour/github-tag-action@v6.2
35+ with :
36+ github_token : ${{ secrets.RELEASE_TOKEN }}
37+ default_bump : patch
38+
39+ - name : Create a GitHub release
40+ uses : ncipollo/release-action@v1
41+ with :
42+ token : ${{ secrets.RELEASE_TOKEN }}
43+ tag : ${{ steps.tag_version.outputs.new_tag }}
44+ name : Release ${{ steps.tag_version.outputs.new_tag }}
45+ body : ${{ steps.tag_version.outputs.changelog }}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " readthis"
7- version = " 0.1.0 "
7+ dynamic = [ " version " ]
88requires-python = " >=3.12,<3.13"
99dependencies = [
1010 " kokoro==0.9.4" ,
You can’t perform that action at this time.
0 commit comments