Fix/release workflow #3

Merged
perl_d merged 2 commits from fix/release_workflow into main 2026-07-02 17:14:40 +02:00
2 changed files with 41 additions and 6 deletions
+3 -6
View File
@@ -1,11 +1,8 @@
name: Build and Publish
on:
workflow_run:
workflows: ["CI"]
# branches:
# - main
types:
- completed
push:
branches:
- main
jobs:
release:
+38
View File
@@ -0,0 +1,38 @@
[tool.semantic_release]
build_command = "python -m build"
version_toml = [
"./pyproject.toml:project.version",
]
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
default_bump_level = 0
[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = true
[tool.semantic_release.remote.token]
env = "GH_TOKEN"
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true