ci: fix release shortcut, ref: NOISSUE

This commit is contained in:
Simon Diesenreiter
2024-12-02 10:44:12 +01:00
parent b74a8f5212
commit 263be78318

View File

@@ -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.