more fixes
Some checks failed
Some checks failed
This commit is contained in:
parent
b6edae42f6
commit
ccb9c598ab
@ -38,7 +38,6 @@ jobs:
|
|||||||
- name: Remove renaming workflow
|
- name: Remove renaming workflow
|
||||||
if: steps.is_template.outputs.is_template == 'true'
|
if: steps.is_template.outputs.is_template == 'true'
|
||||||
run: |
|
run: |
|
||||||
rm .gitea/template.yml
|
|
||||||
rm .gitea/workflows/rename_project.yml
|
rm .gitea/workflows/rename_project.yml
|
||||||
rm .gitea/rename_project.sh
|
rm .gitea/rename_project.sh
|
||||||
|
|
||||||
|
15
Makefile
15
Makefile
@ -1,3 +1,5 @@
|
|||||||
|
.ONESHELL:
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help: ## Show the help.
|
help: ## Show the help.
|
||||||
@echo "Usage: make <target>"
|
@echo "Usage: make <target>"
|
||||||
@ -36,20 +38,19 @@ clean: ## Clean unused files.
|
|||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: ## Create a new tag for release.
|
release: ## Create a new tag for release.
|
||||||
@echo "WARNING: This operation will create a version tag and push to gitea"
|
@echo "WARNING: This operation will create a version tag and push to gitea"
|
||||||
@read -p "Version? (provide the next x.y.z semver) : " TAG
|
@read -p "Version? (provide the next x.y.z semver) : " TAG; echo "$$TAG" > project_name/VERSION
|
||||||
@echo "$${TAG}" > project_name/VERSION
|
@gitchangelog > HISTORY.md
|
||||||
@$(ENV_PREFIX)gitchangelog > HISTORY.md
|
|
||||||
@git add project_name/VERSION HISTORY.md
|
@git add project_name/VERSION HISTORY.md
|
||||||
@git commit -m "release: version $${TAG} 🚀"
|
@git commit -m "release: version $$(cat project_name/VERSION) 🚀"
|
||||||
@echo "creating git tag : $${TAG}"
|
@echo "creating git tag : $$(cat project_name/VERSION)"
|
||||||
@git tag $${TAG}
|
@git tag $$(cat project_name/VERSION)
|
||||||
@git push -u origin HEAD --tags
|
@git push -u origin HEAD --tags
|
||||||
@echo "Gitea Actions will detect the new tag and release the new version."
|
@echo "Gitea Actions will detect the new tag and release the new version."
|
||||||
|
|
||||||
.PHONY: docs
|
.PHONY: docs
|
||||||
docs: ## Build the documentation.
|
docs: ## Build the documentation.
|
||||||
@echo "building 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
|
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
|
# This project has been generated from rochacbruno/python-project-template
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
namespace project_name.Tests;
|
namespace project_name.Tests;
|
||||||
|
|
||||||
|
using project_name;
|
||||||
|
|
||||||
public class UnitTest1
|
public class UnitTest1
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="../project_name/project_name.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="coverlet.collector" Version="6.0.2" />
|
<PackageReference Include="coverlet.collector" Version="6.0.2" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
|
||||||
|
Loading…
Reference in New Issue
Block a user