Skip to content

Commit

Permalink
chore: sem-release config
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <[email protected]>
  • Loading branch information
jkowalleck committed Sep 23, 2023
1 parent 1c9ea9e commit 18b4eca
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"

0 comments on commit 18b4eca

Please sign in to comment.