Compare commits
3 commits
10f41ccebf
...
6708c43cea
Author | SHA1 | Date | |
---|---|---|---|
6708c43cea | |||
9d0ad207d0 | |||
ffe33454b4 |
1 changed files with 9 additions and 9 deletions
14
Taskfile.yml
14
Taskfile.yml
|
@ -6,21 +6,21 @@
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
vars:
|
tasks:
|
||||||
|
|
||||||
|
release:
|
||||||
|
desc: Create and publish an new release
|
||||||
|
vars:
|
||||||
RELEASE:
|
RELEASE:
|
||||||
sh: svu next
|
sh: svu next
|
||||||
BRANCH:
|
BRANCH:
|
||||||
sh: git branch --show-current
|
sh: git branch --show-current
|
||||||
COMMIT:
|
COMMIT:
|
||||||
sh: git rev-parse --short --verify {{.BRANCH}}
|
sh: git rev-parse --short --verify {{.BRANCH}}
|
||||||
|
|
||||||
tasks:
|
|
||||||
|
|
||||||
release:
|
|
||||||
desc: Create and publish an new release
|
|
||||||
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
|
||||||
preconditions:
|
preconditions:
|
||||||
- sh: test "{{.BRANCH}}" == "main"
|
- sh: test "{{.BRANCH}}" == "main"
|
||||||
|
msg: "You must be on the main branch to release"
|
||||||
|
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
cmds:
|
cmds:
|
||||||
- git tag {{.RELEASE}}
|
- git tag {{.RELEASE}}
|
||||||
- git push
|
- git push
|
||||||
|
|
Loading…
Reference in a new issue