Ready to clone and code.

This commit is contained in:
simon
2024-12-01 10:26:44 +00:00
committed by github-actions[bot]
parent 6639ef82ae
commit 683b03ffe0
16 changed files with 29 additions and 118 deletions

View File

@@ -17,41 +17,41 @@ help: ## Show the help.
.PHONY: buildrel
buildrel: issetup ## Format code.
dotnet build -c Release project_name.sln
dotnet build -c Release TextParser.sln
.PHONY: build
build: issetup ## Format code.
dotnet build project_name.sln
dotnet build TextParser.sln
.PHONY: publish
publish: issetup ## Format code.
dotnet publish -c Release project_name.sln
dotnet publish -c Release TextParser.sln
.PHONY: fmt
fmt: issetup ## Format code.
dotnet format project_name.sln
dotnet format TextParser.sln
.PHONY: lint
lint: issetup ## Lint code.
dotnet format --verify-no-changes --verbosity diagnostic project_name.sln
dotnet format --verify-no-changes --verbosity diagnostic TextParser.sln
.PHONY: test
test: issetup ## Run tests and generate coverage report.
dotnet test project_name.sln
dotnet test TextParser.sln
.PHONY: clean
clean: issetup ## Clean unused files.
dotnet clean project_name.sln
dotnet clean TextParser.sln
.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" > project_name/VERSION
@read -p "Version? (provide the next x.y.z semver) : " TAG; echo "$$TAG" > TextParser/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 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."