split tasks into indiviual units
create standalone `goreleaser` task create standalone `dorelease` task
This commit is contained in:
parent
4fd1e60fde
commit
9ffe12bd6d
1 changed files with 14 additions and 5 deletions
19
Taskfile.yml
19
Taskfile.yml
|
@ -12,21 +12,30 @@ vars:
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
release:tag:
|
release:tag:
|
||||||
|
desc: Create a new tag
|
||||||
cmds:
|
cmds:
|
||||||
- git tag v{{.RELEASE}}
|
- git tag v{{.RELEASE}}
|
||||||
|
- git push --tags
|
||||||
|
|
||||||
release:file:
|
release:file:
|
||||||
|
desc: Update version.txt
|
||||||
|
generates:
|
||||||
|
- version.txt
|
||||||
cmds:
|
cmds:
|
||||||
- echo {{.RELEASE}} >{{.VERSIONFILE}}
|
- echo {{.RELEASE}} >{{.VERSIONFILE}}
|
||||||
- git add {{.VERSIONFILE}}
|
- git add {{.VERSIONFILE}}
|
||||||
- git commit -m "{{.COMMITMSG}}"
|
- git commit -m "{{.COMMITMSG}}"
|
||||||
|
- git push
|
||||||
|
|
||||||
release:push:
|
release:goreleaser:
|
||||||
aliases: [dorelease]
|
desc: Create a new release with goreleaser
|
||||||
|
cmds:
|
||||||
|
- goreleaser release --clean
|
||||||
|
|
||||||
|
dorelease:
|
||||||
|
desc: Do all release steps
|
||||||
prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
cmds:
|
cmds:
|
||||||
- task: release:file
|
- task: release:file
|
||||||
- task: release:tag
|
- task: release:tag
|
||||||
- git push
|
- task: release:goreleaser
|
||||||
- git push --tags
|
|
||||||
- goreleaser release
|
|
||||||
|
|
Loading…
Reference in a new issue