merge tasks

This commit is contained in:
Sebastian Mark 2024-11-09 21:44:24 +01:00
parent 2b045787f0
commit a870f70469

View file

@ -13,25 +13,17 @@ vars:
sh: git rev-parse --short --verify {{.BRANCH}}
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
release:
desc: Create and publish an new release
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
preconditions:
- sh: test "{{.BRANCH}}" == "main"
cmds:
- task: release:tag
- task: release:goreleaser
- git tag {{.RELEASE}}
- git push
- git push origin tag {{.RELEASE}}
- goreleaser release --clean
snapshot:
desc: Create a local snapshot release