on main help sign in
chore(task): annotate tags during release
d102102Christian Rocha
Taskfile.yaml+2−2
@@ -90,7 +90,7 @@ tasks:
90 vars:
90 vars:
91 NEXT:
91 NEXT:
92 sh: go run github.com/caarlos0/svu/v3@latest next --always
92 sh: go run github.com/caarlos0/svu/v3@latest next --always
93− prompt: "This will release {{.NEXT}}. Continue?"
93+ prompt: "This will release {{.NEXT}}. Please make sure you've fetch tags. Continue?"
94 preconditions:
94 preconditions:
95 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
95 - sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
96 msg: Not on main branch
96 msg: Not on main branch
@@ -99,6 +99,6 @@ tasks:
99 cmds:
99 cmds:
100 - git commit --allow-empty -m "{{.NEXT}}"
100 - git commit --allow-empty -m "{{.NEXT}}"
101 - git tag -d nightly
101 - git tag -d nightly
102− - git tag --sign {{.NEXT}} {{.CLI_ARGS}}
102+ - git tag --annotate --sign {{.NEXT}} {{.CLI_ARGS}}
103 - echo "Pushing {{.NEXT}}..."
103 - echo "Pushing {{.NEXT}}..."
104 - git push origin --tags
104 - git push origin --tags