generated from Templates/Dotnet_Library
ci: fix release shortcut, ref: NOISSUE
This commit is contained in:
parent
b74a8f5212
commit
263be78318
12
Makefile
12
Makefile
@ -2,7 +2,7 @@
|
||||
|
||||
.PHONY: issetup
|
||||
issetup:
|
||||
@[ -f .git/hooks/commit-msg ] || [ -v SKIP_MAKE_SETUP_CHECK ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1)
|
||||
@[ -f .git/hooks/commit-msg ] || [ -n SKIP_MAKE_SETUP_CHECK ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1)
|
||||
|
||||
.PHONY: setup
|
||||
setup:
|
||||
@ -45,15 +45,7 @@ clean: issetup ## Clean unused files.
|
||||
|
||||
.PHONY: release
|
||||
release: issetup ## 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" > TextParser/VERSION
|
||||
@gitchangelog > HISTORY.md
|
||||
@git add TextParser/VERSION HISTORY.md
|
||||
@git commit -m "release: version $$(cat TextParser/VERSION) 🚀"
|
||||
@echo "creating git tag : $$(cat TextParser/VERSION)"
|
||||
@git tag $$(cat TextParser/VERSION)
|
||||
@git push -u origin HEAD --tags
|
||||
@echo "Gitea Actions will detect the new tag and release the new version."
|
||||
@./.gitea/conventional_commits/generate-version.sh
|
||||
|
||||
.PHONY: docs
|
||||
docs: issetup ## Build the documentation.
|
||||
|
Loading…
x
Reference in New Issue
Block a user