diff --git a/Taskfile.yml b/Taskfile.yml index 39e4695..af2ae6b 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -35,6 +35,8 @@ tasks: dorelease: desc: Do all release steps prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}? + preconditions: + - sh: test "{{.BRANCH}}" == "main" cmds: - task: release:file - task: release:tag