Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
18 changes: 18 additions & 0 deletions taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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:
Expand Down