From 053e6e76de68cde7ede1c022657f5ea6021cd711 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Sat, 9 Nov 2024 21:44:24 +0100 Subject: [PATCH] merge tasks --- Taskfile.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index e9f9f63..01e0a8d 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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