GoTomato/Taskfile.yml

38 lines
818 B
YAML
Raw Normal View History

version: '3'
vars:
2024-11-08 15:00:57 +00:00
VERSIONFILE: version.txt
RELEASE:
sh: svu next
2024-11-08 15:00:57 +00:00
BRANCH:
sh: git branch --show-current
COMMIT:
sh: git rev-parse --short --verify {{.BRANCH}}
COMMITMSG: "chore: bump version to {{.RELEASE}}"
tasks:
release:tag:
desc: Create a new tag
cmds:
- git tag {{.RELEASE}}
- git push --tags
release:goreleaser:
desc: Create a new release with goreleaser
cmds:
- goreleaser release --clean
dorelease:
desc: Do all release steps
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
2024-11-09 08:59:51 +00:00
preconditions:
- sh: test "{{.BRANCH}}" == "main"
cmds:
- task: release:tag
- task: release:goreleaser
2024-11-09 09:13:52 +00:00
snapshot:
desc: Create a local snapshot release
cmds:
- goreleaser release --clean --snapshot