Skip to content

Commit b5c6b5c

Browse files
committed
build: update release process, add script
1 parent 56dab2e commit b5c6b5c

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,11 @@ relative_files = true
205205
[tool.commitizen]
206206
name = "cz_conventional_commits"
207207
tag_format = "v$version"
208-
version_scheme = "semver"
208+
version_scheme = "semver2"
209209
version_provider = "scm"
210210
update_changelog_on_bump = true
211211
major_version_zero = true
212+
annotated_tag = true
212213

213214
[tool.nitpick]
214215
style = ["gh://TotallyNotRobots/nitpick/lib-style-3.9.toml"]

release.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
changelog_file="$(mktemp)"
5+
cz bump --changelog-to-stdout --git-output-to-stderr > "$changelog_file"
6+
7+
git push origin main --tags
8+
9+
gh release create "$(cz version -p)" -d -F "$changelog_file"
10+
rm "$changelog_file"

0 commit comments

Comments
 (0)