diff --git a/.copier-answers.yml b/.copier-answers.yml index 8da67a4..817e915 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY. -_commit: v1.5.0 +_commit: v1.6.0 _src_path: gh:acidsailor/go-scaffolds author: Denis Shaporov / acidsailor author_email: d@shaporov.dev diff --git a/taskfile.yaml b/taskfile.yml similarity index 51% rename from taskfile.yaml rename to taskfile.yml index 09adde4..a2f2bd8 100644 --- a/taskfile.yaml +++ b/taskfile.yml @@ -23,6 +23,12 @@ tasks: cmds: - go test -race ./... + check: + desc: Local composite — lint (mutating) + tests + cmds: + - task: lint + - task: test + build: desc: Local snapshot build (all platforms) cmds: @@ -33,6 +39,24 @@ tasks: cmds: - goreleaser release --clean + release-plan: + desc: Preview the next release version from conventional commits (svu; read-only) + silent: true + cmds: + - svu next --v0 + + release-tag: + desc: Cut & push the next svu tag — fires the GoReleaser `release` job in CI + cmds: + - | + set -euo pipefail + next=$(svu next --v0) + if [ -z "$next" ]; then echo "svu returned no version — is svu installed?" >&2; exit 1; fi + if [ "$next" = "$(svu current)" ]; then echo "nothing to release (at $next)"; exit 0; fi + git tag -a "$next" -m "release $next" + git push origin "$next" + echo "pushed $next → CI will build the release" + update: desc: Pull latest go-scaffolds v1 template tooling (3-way merge; source untouched; no prompts) cmds: