generated from Templates/Dotnet_Library
update Makefile
This commit is contained in:
parent
a3697f8bcb
commit
a8025efe30
10
Makefile
10
Makefile
@ -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."
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user