XXX remove release:file task

This commit is contained in:
Sebastian Mark 2024-11-09 20:01:00 +01:00
parent 3d8591cad6
commit f26c603b19

View file

@ -1,14 +1,12 @@
version: '3' version: '3'
vars: vars:
VERSIONFILE: version.txt
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}}
COMMITMSG: "chore: bump version to {{.RELEASE}}"
tasks: tasks:
release:tag: release:tag:
@ -17,16 +15,6 @@ tasks:
- git tag {{.RELEASE}} - git tag {{.RELEASE}}
- git push --tags - 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: release:goreleaser:
desc: Create a new release with goreleaser desc: Create a new release with goreleaser
cmds: cmds:
@ -38,7 +26,6 @@ tasks:
preconditions: preconditions:
- sh: test "{{.BRANCH}}" == "main" - sh: test "{{.BRANCH}}" == "main"
cmds: cmds:
- task: release:file
- task: release:tag - task: release:tag
- task: release:goreleaser - task: release:goreleaser