bugfix
Some checks failed
Rename the project from template / rename-project (push) Has been skipped
CI / linter (9.0.X, ubuntu-latest) (push) Successful in 5m5s
CI / tests_linux (9.0.X, ubuntu-latest) (push) Successful in 3m12s
SonarQube Scan / SonarQube Trigger (push) Failing after 13m37s

This commit is contained in:
Simon Diesenreiter 2024-11-27 21:28:19 +01:00
parent d27c0950bd
commit 912dd09aac

View File

@ -1,3 +1,5 @@
.ONESHELL:
.PHONY: help
help: ## Show the help.
@echo "Usage: make <target>"
@ -36,20 +38,19 @@ 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
@$(ENV_PREFIX)gitchangelog > HISTORY.md
@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 $${TAG} 🚀"
@echo "creating git tag : $${TAG}"
@git tag $${TAG}
@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."
.PHONY: docs
docs: ## Build the documentation.
@echo "building documentation ..."
@$(ENV_PREFIX)mkdocs build
@mkdocs build
URL="site/index.html"; xdg-open $$URL || sensible-browser $$URL || x-www-browser $$URL || gnome-open $$URL || open $$URL
# This project has been generated from rochacbruno/python-project-template