diff --git a/pyproject.toml b/pyproject.toml index d0bc7f55..3255d2fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,6 +84,8 @@ mypy = "1.5.1" tox = "4.11.3" xmldiff = "2.6.3" + + [tool.semantic_release] # see https://python-semantic-release.readthedocs.io/en/latest/configuration.html commit_message = "chore(release): {version}\n\nAutomatically generated by python-semantic-release" @@ -94,19 +96,27 @@ version_variables = [ "cyclonedx/__init__.py:__version__", "docs/conf.py:release", ] + +[tool.semantic_release.publish] +dist_glob_patterns = ["dist/*"] +upload_to_vcs_release = true + [tool.semantic_release.changelog] changelog_file = "CHANGELOG.md" exclude_commit_patterns = [ "chore\\(release\\):", ] + [tool.semantic_release.branches.main] match = "(main|master)" prerelease = false -[tool.semantic_release.branches."feat|fix|tests|style|docs|chore"] -match = "(feat|fix|tests|style|docs|chore)" + +[tool.semantic_release.branches."step"] +match = "(build|chore|ci|docs|feat|fix|perf|style|refactor|test)" prerelease = true prerelease_token = "alpha" + [tool.semantic_release.branches."major-dev"] -match = "\\d+\\.0\\.0-dev" +match = "\\d+\\.0\\.0-(dev|rc)" prerelease = true -prerelease_token = "alpha" +prerelease_token = "rc"