Compare commits
4 commits
63327bb3ea
...
25f237f73a
Author | SHA1 | Date | |
---|---|---|---|
25f237f73a | |||
62b7190fcd | |||
9ffe12bd6d | |||
4fd1e60fde |
2 changed files with 21 additions and 6 deletions
|
@ -4,7 +4,6 @@ version: 2
|
||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- rm -fr ./dist
|
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
|
|
26
Taskfile.yml
26
Taskfile.yml
|
@ -12,21 +12,37 @@ vars:
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
release:tag:
|
release:tag:
|
||||||
|
desc: Create a new tag
|
||||||
cmds:
|
cmds:
|
||||||
- git tag v{{.RELEASE}}
|
- git tag v{{.RELEASE}}
|
||||||
|
- git push --tags
|
||||||
|
|
||||||
release:file:
|
release:file:
|
||||||
|
desc: Update version.txt
|
||||||
|
generates:
|
||||||
|
- version.txt
|
||||||
cmds:
|
cmds:
|
||||||
- echo {{.RELEASE}} >{{.VERSIONFILE}}
|
- echo {{.RELEASE}} >{{.VERSIONFILE}}
|
||||||
- git add {{.VERSIONFILE}}
|
- git add {{.VERSIONFILE}}
|
||||||
- git commit -m "{{.COMMITMSG}}"
|
- git commit -m "{{.COMMITMSG}}"
|
||||||
|
- git push
|
||||||
|
|
||||||
release:push:
|
release:goreleaser:
|
||||||
aliases: [dorelease]
|
desc: Create a new release with goreleaser
|
||||||
|
cmds:
|
||||||
|
- goreleaser release --clean
|
||||||
|
|
||||||
|
dorelease:
|
||||||
|
desc: Do all release steps
|
||||||
prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
|
preconditions:
|
||||||
|
- sh: test "{{.BRANCH}}" == "main"
|
||||||
cmds:
|
cmds:
|
||||||
- task: release:file
|
- task: release:file
|
||||||
- task: release:tag
|
- task: release:tag
|
||||||
- git push
|
- task: release:goreleaser
|
||||||
- git push --tags
|
|
||||||
- goreleaser release
|
snapshot:
|
||||||
|
desc: Create a local snapshot release
|
||||||
|
cmds:
|
||||||
|
- goreleaser release --clean --snapshot
|
||||||
|
|
Loading…
Reference in a new issue