merge tasks
This commit is contained in:
parent
29db2e0038
commit
cc6c674574
1 changed files with 6 additions and 14 deletions
20
Taskfile.yml
20
Taskfile.yml
|
@ -15,25 +15,17 @@ vars:
|
||||||
COMMITMSG: "chore: bump version to {{.RELEASE}}"
|
COMMITMSG: "chore: bump version to {{.RELEASE}}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
release:tag:
|
|
||||||
desc: Create a new tag
|
|
||||||
cmds:
|
|
||||||
- git tag {{.RELEASE}}
|
|
||||||
- git push --tags
|
|
||||||
|
|
||||||
release:goreleaser:
|
release:
|
||||||
desc: Create a new release with goreleaser
|
desc: Create and publish an new release
|
||||||
cmds:
|
|
||||||
- goreleaser release --clean
|
|
||||||
|
|
||||||
dorelease:
|
|
||||||
desc: Do all release steps
|
|
||||||
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
preconditions:
|
preconditions:
|
||||||
- sh: test "{{.BRANCH}}" == "main"
|
- sh: test "{{.BRANCH}}" == "main"
|
||||||
cmds:
|
cmds:
|
||||||
- task: release:tag
|
- git tag {{.RELEASE}}
|
||||||
- task: release:goreleaser
|
- git push
|
||||||
|
- git push origin tag {{.RELEASE}}
|
||||||
|
- goreleaser release --clean
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
desc: Create a local snapshot release
|
desc: Create a local snapshot release
|
||||||
|
|
Loading…
Reference in a new issue