diff --git a/.gitea/workflows/rename_project.yml b/.gitea/workflows/rename_project.yml index 88c56aa..caff6c5 100644 --- a/.gitea/workflows/rename_project.yml +++ b/.gitea/workflows/rename_project.yml @@ -38,7 +38,6 @@ jobs: - name: Remove renaming workflow if: steps.is_template.outputs.is_template == 'true' run: | - rm .gitea/template.yml rm .gitea/workflows/rename_project.yml rm .gitea/rename_project.sh diff --git a/Makefile b/Makefile index 2797c77..6fd9690 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +.ONESHELL: + .PHONY: help help: ## Show the help. @echo "Usage: make " @@ -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 diff --git a/project_name.Tests/UnitTest1.cs b/project_name.Tests/UnitTest1.cs index cd4d86c..73758db 100644 --- a/project_name.Tests/UnitTest1.cs +++ b/project_name.Tests/UnitTest1.cs @@ -1,5 +1,7 @@ namespace project_name.Tests; +using project_name; + public class UnitTest1 { [Fact] diff --git a/project_name.Tests/project_name.Tests.csproj b/project_name.Tests/project_name.Tests.csproj index ac4b43f..184e6f4 100644 --- a/project_name.Tests/project_name.Tests.csproj +++ b/project_name.Tests/project_name.Tests.csproj @@ -8,6 +8,10 @@ true + + + +