feat: add release management via taskdev
- create `Taskfile.yml` - update version file with the new release version - add new version tag - push to remote and run goreleaser
This commit is contained in:
parent
5d424ae8d1
commit
99b6c8378e
1 changed files with 27 additions and 0 deletions
27
Taskfile.yml
Normal file
27
Taskfile.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
vars:
|
||||||
|
RELEASE:
|
||||||
|
sh: svu next --strip-prefix
|
||||||
|
VERSIONFILE: version.txt
|
||||||
|
COMMITMSG: "chore: bump version to v{{.RELEASE}}"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
release:tag:
|
||||||
|
cmds:
|
||||||
|
- git tag v{{.RELEASE}}
|
||||||
|
|
||||||
|
release:file:
|
||||||
|
cmds:
|
||||||
|
- echo {{.RELEASE}} >{{.VERSIONFILE}}
|
||||||
|
- git add {{.VERSIONFILE}}
|
||||||
|
- git commit -m "{{.COMMITMSG}}"
|
||||||
|
|
||||||
|
release:push:
|
||||||
|
aliases: [dorelease]
|
||||||
|
cmds:
|
||||||
|
- task: release:file
|
||||||
|
- task: release:tag
|
||||||
|
- git push
|
||||||
|
- git push --tags
|
||||||
|
- goreleaser release
|
Loading…
Reference in a new issue