ci: bugfixes with workflows, ref: NOISSUE
Some checks failed
Some checks failed
This commit is contained in:
parent
980cd38f8e
commit
aef00a63cf
@ -38,3 +38,5 @@ mv $name.Tests/project_name.Tests.csproj $name.Tests/$name.Tests.csproj
|
|||||||
|
|
||||||
# This command runs only once on GHA!
|
# This command runs only once on GHA!
|
||||||
rm -rf .gitea/template.yml
|
rm -rf .gitea/template.yml
|
||||||
|
rm -rf project_name
|
||||||
|
rm -rf project_name.Tests
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
|
env:
|
||||||
|
SKIP_MAKE_SETUP_CHECK: 'true'
|
||||||
|
|
||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
# Triggers the workflow on push or pull request events but only for the main branch
|
# Triggers the workflow on push or pull request events but only for the main branch
|
||||||
|
@ -2,6 +2,9 @@ name: Upload Python Package
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
|
env:
|
||||||
|
SKIP_MAKE_SETUP_CHECK: 'true'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
# Sequence of patterns matched against refs/tags
|
# Sequence of patterns matched against refs/tags
|
||||||
|
12
Makefile
12
Makefile
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
.PHONY: issetup
|
.PHONY: issetup
|
||||||
issetup:
|
issetup:
|
||||||
@[ -f .git/hooks/commit-msg ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1)
|
@[ -f .git/hooks/commit-msg ] || [ -v SKIP_MAKE_SETUP_CHECK ] || (echo "You must run 'make setup' first to initialize the repo!" && exit 1)
|
||||||
|
|
||||||
.PHONY: setup
|
.PHONY: setup
|
||||||
setup:
|
setup:
|
||||||
@ -45,15 +45,7 @@ clean: issetup ## Clean unused files.
|
|||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
release: issetup ## Create a new tag for release.
|
release: issetup ## Create a new tag for release.
|
||||||
@echo "WARNING: This operation will create a version tag and push to gitea"
|
@./.gitea/conventional_commits/generate-version.sh
|
||||||
@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 $$(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
|
.PHONY: docs
|
||||||
docs: issetup ## Build the documentation.
|
docs: issetup ## Build the documentation.
|
||||||
|
Loading…
Reference in New Issue
Block a user