feat: add release ci job, add semantic verioning

This commit is contained in:
2026-03-27 10:04:09 -04:00
parent 12fb18858f
commit 931b53cb7c
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
name: Release
on:
push:
branches: [main]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install python-semantic-release
- run: semantic-release version --push --vcs-release
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}

13
pyproject.toml Normal file
View File

@@ -0,0 +1,13 @@
#:schema https://json.schemastore.org/pyproject.json
[tool.semantic_release]
commit_parser = "angular"
version_toml = []
tag_format = "v{version}"
[tool.semantic_release.remote]
type = "gitea"
domain = "git.maximhutz.com"
[tool.semantic_release.remote.token]
env = "GITEA_TOKEN"