We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 574013e commit dfd80c4Copy full SHA for dfd80c4
Taskfile.yaml
@@ -37,3 +37,19 @@ tasks:
37
aliases: [default]
38
cmds:
39
- go run .
40
+ release:
41
+ desc: Create and push a new tag following semver
42
+ vars:
43
+ NEXT:
44
+ sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always
45
+ prompt: "This will release {{.NEXT}}. Continue?"
46
+ preconditions:
47
+ - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
48
+ msg: Not on main branch
49
+ - sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"
50
+ msg: "Git is dirty"
51
+ cmds:
52
+ - git commit --allow-empty -m "{{.NEXT}}"
53
+ - git tag --annotate --sign -m "{{.NEXT}}" {{.NEXT}} {{.CLI_ARGS}}
54
+ - echo "Pushing {{.NEXT}}..."
55
+ - git push origin main --follow-tags
0 commit comments