diff --git a/Makefile b/Makefile index a6a6981..2009fc4 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ .PHONY: issetup issetup: - @[ -f .git/hooks/commit-msg ] || [ -v SKIP_MAKE_SETUP_CHECK ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1) + @[ -f .git/hooks/commit-msg ] || [ -n SKIP_MAKE_SETUP_CHECK ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1) .PHONY: setup setup: @@ -45,15 +45,7 @@ clean: issetup ## Clean unused files. .PHONY: release release: issetup ## Create a new tag for release. - @echo "WARNING: This operation will create a version tag and push to gitea" - @read -p "Version? (provide the next x.y.z semver) : " TAG; echo "$$TAG" > TextParser/VERSION - @gitchangelog > HISTORY.md - @git add TextParser/VERSION HISTORY.md - @git commit -m "release: version $$(cat TextParser/VERSION) 🚀" - @echo "creating git tag : $$(cat TextParser/VERSION)" - @git tag $$(cat TextParser/VERSION) - @git push -u origin HEAD --tags - @echo "Gitea Actions will detect the new tag and release the new version." + @./.gitea/conventional_commits/generate-version.sh .PHONY: docs docs: issetup ## Build the documentation.