Compare commits
2 commits
6708c43cea
...
10f41ccebf
Author | SHA1 | Date | |
---|---|---|---|
10f41ccebf | |||
e195eaba95 |
1 changed files with 9 additions and 9 deletions
18
Taskfile.yml
18
Taskfile.yml
|
@ -6,21 +6,21 @@
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
|
vars:
|
||||||
|
RELEASE:
|
||||||
|
sh: svu next
|
||||||
|
BRANCH:
|
||||||
|
sh: git branch --show-current
|
||||||
|
COMMIT:
|
||||||
|
sh: git rev-parse --short --verify {{.BRANCH}}
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
release:
|
release:
|
||||||
desc: Create and publish an new release
|
desc: Create and publish an new release
|
||||||
vars:
|
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
RELEASE:
|
|
||||||
sh: svu next
|
|
||||||
BRANCH:
|
|
||||||
sh: git branch --show-current
|
|
||||||
COMMIT:
|
|
||||||
sh: git rev-parse --short --verify {{.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