File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ jobs:
1919 - uses : actions/setup-go@v5
2020 with :
2121 go-version-file : go.mod
22+ cache : true
2223
2324 - uses : goreleaser/goreleaser-action@v6
2425 with :
2526 version : " ~> v2"
2627 args : release --clean
2728 env :
2829 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30+ PRIVATE_GITHUB_TOKEN : ${{ secrets.PRIVATE_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
3+
14version : 2
25
6+ before :
7+ hooks :
8+ - go mod tidy
9+ - go generate ./...
10+
311builds :
412 - env :
513 - CGO_ENABLED=0
614 goos :
715 - linux
816 - darwin
9- - windows
10- goarch :
11- - amd64
12- - arm64
1317
1418archives :
15- - format : tar.gz
16- name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
17- format_overrides :
18- - goos : windows
19- format : zip
20-
21- brews :
22- - repository :
23- owner : dev-shimada
24- name : homebrew-tap
25- homepage : " https://github.com/dev-shimada/semtag"
26- description : " CLI tool to interactively create and manage semver git tags"
27- license : " MIT"
28- install : |
29- bin.install "semtag"
19+ - formats :
20+ - tar.gz
21+ name_template : >-
22+ {{ .ProjectName }}_
23+ {{- title .Os }}_
24+ {{- if eq .Arch "amd64" }}x86_64
25+ {{- else if eq .Arch "386" }}i386
26+ {{- else }}{{ .Arch }}{{ end }}
27+ {{- if .Arm }}v{{ .Arm }}{{ end }}
3028
3129changelog :
3230 sort : asc
3331 filters :
3432 exclude :
3533 - " ^docs:"
3634 - " ^test:"
35+
36+ release :
37+ footer : >-
38+
39+ ---
40+
41+ Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
42+
43+ homebrew_casks :
44+ - name : " {{ .ProjectName }}"
45+ description : " A CLI tool to interactively create and manage semver git tags"
46+ homepage : " https://github.com/dev-shimada/{{ .ProjectName }}"
47+
48+ repository :
49+ owner : dev-shimada
50+ name : homebrew-{{ .ProjectName }}
51+ branch : " {{ .ProjectName }}"
52+ token : " {{ .Env.PRIVATE_GITHUB_TOKEN }}"
53+
54+ pull_request :
55+ enabled : true
56+ draft : false
57+ base :
58+ branch : main
59+
60+ binaries :
61+ - " {{ .ProjectName }}"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Git の semver タグを対話的に作成・管理する CLI ツール。
1414### Homebrew
1515
1616``` sh
17- brew tap dev-shimada/tap
17+ brew tap dev-shimada/semtag
1818brew install semtag
1919```
2020
You can’t perform that action at this time.
0 commit comments