Compare commits
No commits in common. "25f237f73a0b0cb94f3f741a9e862247b213e536" and "63327bb3ead61df4ae08aaa0e6e6cb14fe8a5f35" have entirely different histories.
25f237f73a
...
63327bb3ea
2 changed files with 6 additions and 21 deletions
|
@ -4,6 +4,7 @@ version: 2
|
|||
|
||||
before:
|
||||
hooks:
|
||||
- rm -fr ./dist
|
||||
- go mod tidy
|
||||
|
||||
builds:
|
||||
|
|
26
Taskfile.yml
26
Taskfile.yml
|
@ -12,37 +12,21 @@ vars:
|
|||
|
||||
tasks:
|
||||
release:tag:
|
||||
desc: Create a new tag
|
||||
cmds:
|
||||
- git tag v{{.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:
|
||||
- goreleaser release --clean
|
||||
|
||||
dorelease:
|
||||
desc: Do all release steps
|
||||
release:push:
|
||||
aliases: [dorelease]
|
||||
prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||
preconditions:
|
||||
- sh: test "{{.BRANCH}}" == "main"
|
||||
cmds:
|
||||
- task: release:file
|
||||
- task: release:tag
|
||||
- task: release:goreleaser
|
||||
|
||||
snapshot:
|
||||
desc: Create a local snapshot release
|
||||
cmds:
|
||||
- goreleaser release --clean --snapshot
|
||||
- git push
|
||||
- git push --tags
|
||||
- goreleaser release
|
||||
|
|
Loading…
Reference in a new issue