Compare commits
3 commits
10f41ccebf
...
6708c43cea
Author | SHA1 | Date | |
---|---|---|---|
6708c43cea | |||
9d0ad207d0 | |||
ffe33454b4 |
2 changed files with 12 additions and 10 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:
|
||||||
|
|
20
Taskfile.yml
20
Taskfile.yml
|
@ -1,24 +1,26 @@
|
||||||
|
# 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
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
vars:
|
|
||||||
RELEASE:
|
|
||||||
sh: svu next
|
|
||||||
BRANCH:
|
|
||||||
sh: git branch --show-current
|
|
||||||
COMMIT:
|
|
||||||
sh: git rev-parse --short --verify {{.BRANCH}}
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
release:
|
release:
|
||||||
desc: Create and publish an new release
|
desc: Create and publish an new release
|
||||||
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
vars:
|
||||||
|
RELEASE:
|
||||||
|
sh: svu next
|
||||||
|
BRANCH:
|
||||||
|
sh: git branch --show-current
|
||||||
|
COMMIT:
|
||||||
|
sh: git rev-parse --short --verify {{.BRANCH}}
|
||||||
preconditions:
|
preconditions:
|
||||||
- sh: test "{{.BRANCH}}" == "main"
|
- sh: test "{{.BRANCH}}" == "main"
|
||||||
|
msg: "You must be on the main branch to release"
|
||||||
|
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
cmds:
|
cmds:
|
||||||
- git tag {{.RELEASE}}
|
- git tag {{.RELEASE}}
|
||||||
- git push
|
- git push
|
||||||
|
|
Loading…
Reference in a new issue