XXX remove release:file task

This commit is contained in:
Sebastian Mark 2024-11-09 20:01:00 +01:00
parent a524a9499c
commit f3beaeaa0b

View file

@ -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