diff --git a/Taskfile.yaml b/Taskfile.yaml index 8f714b0e5afba0dec28f85627be47503dc59c0fb..a990205a63497fbb020c78298fb826890ee1dcda 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -90,15 +90,15 @@ tasks: vars: NEXT: sh: go run github.com/caarlos0/svu/v3@latest next --always - prompt: "This will release {{.NEXT}}. Please make sure you've fetch tags. Continue?" + prompt: "This will release {{.NEXT}}. Continue?" preconditions: - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]' msg: Not on main branch - sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]" msg: "Git is dirty" cmds: + - task: fetch-tags - git commit --allow-empty -m "{{.NEXT}}" - - git tag -d nightly - git tag --annotate --sign {{.NEXT}} {{.CLI_ARGS}} - echo "Pushing {{.NEXT}}..." - git push origin --tags