diff --git a/pyproject.toml b/pyproject.toml index 22434bb..49718bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,3 +21,31 @@ pytest = "^8.1.1" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" + +[tool.semantic_release] +version_toml = [ + "pyproject.toml:tool.poetry.version" +] + +branch = "main" +upload_to_PyPI = true +upload_to_release = true +build_command = "pip install poetry && poetry build" +commit_author = "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" + + +[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"]