Compare commits
3 commits
cc6c2c4bea
...
a4bbe933be
Author | SHA1 | Date | |
---|---|---|---|
a4bbe933be | |||
ab6e4d493d | |||
cc6c674574 |
2 changed files with 9 additions and 15 deletions
|
@ -1,10 +1,10 @@
|
||||||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
||||||
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
||||||
|
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- rm -fr ./dist
|
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
|
|
22
Taskfile.yml
22
Taskfile.yml
|
@ -1,3 +1,5 @@
|
||||||
|
# yaml-language-server: $schema=https://taskfile.dev/schema.json
|
||||||
|
#
|
||||||
# Requirements:
|
# Requirements:
|
||||||
# github.com/caarlos0/svu@latest
|
# github.com/caarlos0/svu@latest
|
||||||
# github.com/goreleaser/goreleaser/v2@latest
|
# github.com/goreleaser/goreleaser/v2@latest
|
||||||
|
@ -15,25 +17,17 @@ vars:
|
||||||
COMMITMSG: "chore: bump version to {{.RELEASE}}"
|
COMMITMSG: "chore: bump version to {{.RELEASE}}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
release:tag:
|
|
||||||
desc: Create a new tag
|
|
||||||
cmds:
|
|
||||||
- git tag {{.RELEASE}}
|
|
||||||
- git push --tags
|
|
||||||
|
|
||||||
release:goreleaser:
|
release:
|
||||||
desc: Create a new release with goreleaser
|
desc: Create and publish an new release
|
||||||
cmds:
|
|
||||||
- goreleaser release --clean
|
|
||||||
|
|
||||||
dorelease:
|
|
||||||
desc: Do all release steps
|
|
||||||
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
preconditions:
|
preconditions:
|
||||||
- sh: test "{{.BRANCH}}" == "main"
|
- sh: test "{{.BRANCH}}" == "main"
|
||||||
cmds:
|
cmds:
|
||||||
- task: release:tag
|
- git tag {{.RELEASE}}
|
||||||
- task: release:goreleaser
|
- git push
|
||||||
|
- git push origin tag {{.RELEASE}}
|
||||||
|
- goreleaser release --clean
|
||||||
|
|
||||||
snapshot:
|
snapshot:
|
||||||
desc: Create a local snapshot release
|
desc: Create a local snapshot release
|
||||||
|
|
Loading…
Reference in a new issue