diff --git a/HISTORY.md b/HISTORY.md index 4d59ac5..a59de35 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -17,6 +17,7 @@ Changelog - Release: version 🚀 [Simon Diesenreiter] - Release: version 🚀 [Simon Diesenreiter] - Release: version 🚀 [Simon Diesenreiter] +- Release: version 🚀 [Simon Diesenreiter] - ✅ Ready to clone and code. [simon] - Init project. [Simon Diesenreiter] - Initial commit. [Projects <>] diff --git a/Makefile b/Makefile index 401c003..594dbd0 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +.ONESHELL: + .PHONY: help help: ## Show the help. @echo "Usage: make " @@ -36,13 +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}" > DotnetTestLib/VERSION - @$(ENV_PREFIX)gitchangelog > HISTORY.md - @git add DotnetTestLib/VERSION HISTORY.md - @git commit -m "release: version $${TAG} 🚀" - @echo "creating git tag : $${TAG}" - @git tag $${TAG} + @read -p "Version? (provide the next x.y.z semver) : " TAG; echo "$$TAG" > project_name/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 push -u origin HEAD --tags @echo "Gitea Actions will detect the new tag and release the new version."