From 1ec32bc0d9785ebce061f25956cb968c99f4d7da Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Fri, 8 Nov 2024 15:13:46 +0100 Subject: [PATCH] feat: add release management via taskdev - create `Taskfile.yml` - update version file with the new release version - add new version tag - push to remote and run goreleaser --- Taskfile.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..ba0bef3 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,27 @@ +version: '3' + +vars: + RELEASE: + sh: svu next --strip-prefix + VERSIONFILE: version.txt + COMMITMSG: "chore: bump version to v{{.RELEASE}}" + +tasks: + release:tag: + cmds: + - git tag v{{.RELEASE}} + + release:file: + cmds: + - echo {{.RELEASE}} >{{.VERSIONFILE}} + - git add {{.VERSIONFILE}} + - git commit -m "{{.COMMITMSG}}" + + release:push: + aliases: [dorelease] + cmds: + - task: release:file + - task: release:tag + - git push + - git push --tags + - goreleaser release