Skip to content

Commit b8212eb

Browse files
authored
chore: enabled github actions (#3)
1 parent 883a235 commit b8212eb

3 files changed

Lines changed: 66 additions & 1 deletion

File tree

.github/workflows/build.yml

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

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "readthis"
7-
version = "0.1.0"
7+
dynamic = ["version"]
88
requires-python = ">=3.12,<3.13"
99
dependencies = [
1010
"kokoro==0.9.4",

0 commit comments

Comments
 (0)