Compare commits

..

2 commits

View file

@ -17,17 +17,25 @@ vars:
COMMITMSG: "chore: bump version to {{.RELEASE}}" COMMITMSG: "chore: bump version to {{.RELEASE}}"
tasks: tasks:
release:tag:
desc: Create a new tag
cmds:
- git tag {{.RELEASE}}
- git push --tags
release: release:goreleaser:
desc: Create and publish an new release desc: Create a new release with goreleaser
cmds:
- goreleaser release --clean
dorelease:
desc: Do all release steps
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}? prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
preconditions: preconditions:
- sh: test "{{.BRANCH}}" == "main" - sh: test "{{.BRANCH}}" == "main"
cmds: cmds:
- git tag {{.RELEASE}} - task: release:tag
- git push - task: release:goreleaser
- git push origin tag {{.RELEASE}}
- goreleaser release --clean
snapshot: snapshot:
desc: Create a local snapshot release desc: Create a local snapshot release