only run dorelase in main branch

This commit is contained in:
Sebastian Mark 2024-11-09 09:59:51 +01:00
parent 02abad82e8
commit 8c4ba60095

View file

@ -35,6 +35,8 @@ tasks:
dorelease: dorelease:
desc: Do all release steps desc: Do all release steps
prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}? prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
preconditions:
- sh: test "{{.BRANCH}}" == "main"
cmds: cmds:
- task: release:file - task: release:file
- task: release:tag - task: release:tag