Skip to content

Commit ef856fd

Browse files
committed
feat: setup semantic releases
1 parent 51059e2 commit ef856fd

3 files changed

Lines changed: 219 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up uv and python
19+
uses: astral-sh/setup-uv@v6
20+
with:
21+
python-version: 3.13
22+
23+
- name: Run semantic-release
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: uvx python-semantic-release publish

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dependencies = [
2222
"minio>=7.2.15",
2323
"pandas>=2.3.0",
2424
"platformdirs>=4.3.8",
25+
"python-semantic-release>=9.21.1",
2526
"python-slugify>=8.0.4",
2627
"torch>=2.7.1",
2728
]
@@ -37,3 +38,10 @@ dbt-duckdb = { git = "https://github.com/duckdb/dbt-duckdb.git", rev = "afc39991
3738

3839
[tool.setuptools.packages.find]
3940
include = ["dlctl", "shared", "ingest", "transform", "export", "graph"]
41+
42+
[tool.semantic_release]
43+
commit_parser = "conventional"
44+
version_variables = ["pyproject.toml:project.version"]
45+
changelog_file = "CHANGELOG.md"
46+
branches = ["main"]
47+
upload_to_vcs_release = true

0 commit comments

Comments
 (0)