bugfixes
Some checks failed
CI / tests_linux (9.0.X, ubuntu-latest) (push) Blocked by required conditions
CI / linter (9.0.X, ubuntu-latest) (push) Has been cancelled
SonarQube Scan / SonarQube Trigger (push) Has been cancelled

This commit is contained in:
Simon Diesenreiter 2024-11-27 21:29:03 +01:00
parent e3c18bed49
commit 553010ec7a
2 changed files with 9 additions and 7 deletions

View File

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

View File

@ -1,3 +1,5 @@
.ONESHELL:
.PHONY: help
help: ## Show the help.
@echo "Usage: make <target>"
@ -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."