XXX remove release:file task
This commit is contained in:
parent
3d8591cad6
commit
f26c603b19
1 changed files with 0 additions and 13 deletions
13
Taskfile.yml
13
Taskfile.yml
|
@ -1,14 +1,12 @@
|
|||
version: '3'
|
||||
|
||||
vars:
|
||||
VERSIONFILE: version.txt
|
||||
RELEASE:
|
||||
sh: svu next
|
||||
BRANCH:
|
||||
sh: git branch --show-current
|
||||
COMMIT:
|
||||
sh: git rev-parse --short --verify {{.BRANCH}}
|
||||
COMMITMSG: "chore: bump version to {{.RELEASE}}"
|
||||
|
||||
tasks:
|
||||
release:tag:
|
||||
|
@ -17,16 +15,6 @@ tasks:
|
|||
- git tag {{.RELEASE}}
|
||||
- git push --tags
|
||||
|
||||
release:file:
|
||||
desc: Update version.txt
|
||||
generates:
|
||||
- version.txt
|
||||
cmds:
|
||||
- echo {{.RELEASE}} >{{.VERSIONFILE}}
|
||||
- git add {{.VERSIONFILE}}
|
||||
- git commit -m "{{.COMMITMSG}}"
|
||||
- git push
|
||||
|
||||
release:goreleaser:
|
||||
desc: Create a new release with goreleaser
|
||||
cmds:
|
||||
|
@ -38,7 +26,6 @@ tasks:
|
|||
preconditions:
|
||||
- sh: test "{{.BRANCH}}" == "main"
|
||||
cmds:
|
||||
- task: release:file
|
||||
- task: release:tag
|
||||
- task: release:goreleaser
|
||||
|
||||
|
|
Loading…
Reference in a new issue