diff --git a/Taskfile.yml b/Taskfile.yml index 9d92541..39e4695 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -12,21 +12,30 @@ vars: tasks: release:tag: + desc: Create a new tag cmds: - git tag v{{.RELEASE}} + - git push --tags release:file: + desc: Update version.txt + generates: + - version.txt cmds: - echo {{.RELEASE}} >{{.VERSIONFILE}} - git add {{.VERSIONFILE}} - git commit -m "{{.COMMITMSG}}" + - git push - release:push: - aliases: [dorelease] + release:goreleaser: + 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}}? cmds: - task: release:file - task: release:tag - - git push - - git push --tags - - goreleaser release + - task: release:goreleaser