update Makefile

This commit is contained in:
2024-11-27 21:38:49 +01:00
parent a3697f8bcb
commit a8025efe30

View File

@@ -38,12 +38,12 @@ clean: ## Clean unused files.
.PHONY: release
release: ## 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" > project_name/VERSION
@read -p "Version? (provide the next x.y.z semver) : " TAG; echo "$$TAG" > DotnetTestLib/VERSION
@gitchangelog > HISTORY.md
@git add project_name/VERSION HISTORY.md
@git commit -m "release: version $$(cat project_name/VERSION) 🚀"
@echo "creating git tag : $$(cat project_name/VERSION)"
@git tag $$(cat project_name/VERSION)
@git add DotnetTestLib/VERSION HISTORY.md
@git commit -m "release: version $$(cat DotnetTestLib/VERSION) 🚀"
@echo "creating git tag : $$(cat DotnetTestLib/VERSION)"
@git tag $$(cat DotnetTestLib/VERSION)
@git push -u origin HEAD --tags
@echo "Gitea Actions will detect the new tag and release the new version."