update Makefile
Some checks failed
CI / linter (9.0.X, ubuntu-latest) (push) Successful in 1m26s
SonarQube Scan / SonarQube Trigger (push) Successful in 1m26s
CI / tests_linux (9.0.X, ubuntu-latest) (push) Has been cancelled

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

View File

@ -38,12 +38,12 @@ clean: ## Clean unused files.
.PHONY: release .PHONY: release
release: ## Create a new tag for release. release: ## Create a new tag for release.
@echo "WARNING: This operation will create a version tag and push to gitea" @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 @gitchangelog > HISTORY.md
@git add project_name/VERSION HISTORY.md @git add DotnetTestLib/VERSION HISTORY.md
@git commit -m "release: version $$(cat project_name/VERSION) 🚀" @git commit -m "release: version $$(cat DotnetTestLib/VERSION) 🚀"
@echo "creating git tag : $$(cat project_name/VERSION)" @echo "creating git tag : $$(cat DotnetTestLib/VERSION)"
@git tag $$(cat project_name/VERSION) @git tag $$(cat DotnetTestLib/VERSION)
@git push -u origin HEAD --tags @git push -u origin HEAD --tags
@echo "Gitea Actions will detect the new tag and release the new version." @echo "Gitea Actions will detect the new tag and release the new version."