Skip to content

Commit

Permalink
build: tag and release after bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Feb 4, 2024
1 parent 854e552 commit 55466a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .cz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
gpg_sign = true
major_version_zero = true
name = "cz_conventional_commits"
post_bump_hooks = [
"make .release-post-bump",
]
pre_bump_hooks = [
"make build",
]
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ test-watch: # Run tests and watch for changes
release: # Bump the version, create a tag, commit and push. This will trigger the PyPI release on GitHub Actions
# https://commitizen-tools.github.io/commitizen/bump/#configuration
# See also: cz bump --help
cz bump --check-consistency
git push --atomic --tags
cz bump --dry-run --check-consistency 0.2.1
.PHONY: release

.release-post-bump:
git push --atomic origin master ${CZ_POST_CURRENT_TAG_VERSION}
gh release create ${CZ_POST_CURRENT_TAG_VERSION} -F ${CZ_POST_CHANGELOG_FILE_NAME}
.PHONY: .release-post-bump

0 comments on commit 55466a3

Please sign in to comment.