Skip to content

Commit be40417

Browse files
committed
chore: sem-release config
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1c9ea9e commit be40417

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

pyproject.toml

+13-3
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ mypy = "1.5.1"
8484
tox = "4.11.3"
8585
xmldiff = "2.6.3"
8686

87+
88+
8789
[tool.semantic_release]
8890
# see https://python-semantic-release.readthedocs.io/en/latest/configuration.html
8991
commit_message = "chore(release): {version}\n\nAutomatically generated by python-semantic-release"
@@ -94,19 +96,27 @@ version_variables = [
9496
"cyclonedx/__init__.py:__version__",
9597
"docs/conf.py:release",
9698
]
99+
100+
[tool.semantic_release.publish]
101+
dist_glob_patterns = ["dist/*"]
102+
upload_to_vcs_release = true
103+
97104
[tool.semantic_release.changelog]
98105
changelog_file = "CHANGELOG.md"
99106
exclude_commit_patterns = [
100107
"chore\\(release\\):",
101108
]
109+
102110
[tool.semantic_release.branches.main]
103111
match = "(main|master)"
104112
prerelease = false
105-
[tool.semantic_release.branches."feat|fix|tests|style|docs|chore"]
106-
match = "(feat|fix|tests|style|docs|chore)"
113+
114+
[tool.semantic_release.branches."step"]
115+
match = "(build|chore|ci|docs|feat|fix|perf|style|refactor|test)"
107116
prerelease = true
108117
prerelease_token = "alpha"
118+
109119
[tool.semantic_release.branches."major-dev"]
110120
match = "\\d+\\.0\\.0-dev"
111121
prerelease = true
112-
prerelease_token = "alpha"
122+
prerelease_token = "rc"

0 commit comments

Comments
 (0)