.default: help
.PHONY: help
help:
@echo "usage:"
@echo "bumpversion [part=]"
@echo " bumps the given part of the version of the project. (Default: part='patch')"
@echo ""
@echo "bumpversion-show"
@echo " shows the bump path that is possible"
@echo ""
@echo "publish [branch=]"
@echo " pushes the given branch including tags to origin, for CI to publish based on tags. (Default: branch='main')"
@echo " Typically used after 'make bumpversion'"
@echo ""
@echo "prepare-release"
@echo " run tasks to prepare a release"
@echo ""
part := "patch"
bumpversion:
${INVENV} bump-my-version bump ${part}
bumpversion-show:
${INVENV} bump-my-version show-bump
branch := "main"
publish:
git push -u origin ${branch} --tags
.PHONY: prepare-release
prepare-release: update-changelog
.PHONY: update-changelog
update-changelog: CHANGELOG.md
.PHONY: CHANGELOG.md
CHANGELOG.md:
git cliff --unreleased --prepend $@