File tree Expand file tree Collapse file tree 5 files changed +28
-46
lines changed Expand file tree Collapse file tree 5 files changed +28
-46
lines changed Original file line number Diff line number Diff line change 25
25
# リリース
26
26
- uses : goreleaser/goreleaser-action@v4
27
27
with :
28
- args : release --rm-dist
28
+ args : release --clean
29
29
env :
30
30
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
31
TAP_GITHUB_TOKEN : ${{ secrets.TAP_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
- # This is an example .goreleaser.yml file with some sensible defaults.
2
- # Make sure to check the documentation at https://goreleaser.com
1
+ # .goreleaser.yml
2
+ version : 2
3
+ # Before section
3
4
before :
4
5
hooks :
5
- # You may remove this if you don't use go modules.
6
+ # Ensure go modules are tidy
6
7
- go mod tidy
7
- # you may remove this if you don't need go generate
8
+ # Optionally, run go generate if needed
8
9
- go generate ./...
10
+ # Builds section
9
11
builds :
10
12
- env :
11
13
- CGO_ENABLED=0
12
14
goos :
13
15
- linux
14
16
- windows
15
17
- darwin
16
-
18
+ # Add additional build configurations as needed
19
+ # Archives section
17
20
archives :
18
- - format : tar.gz
19
- # this name template makes the OS and Arch compatible with the results of uname.
21
+ - id : tar_gz
22
+ format : tar.gz
23
+ # Customize archive name based on OS and Arch
20
24
name_template : >-
21
- {{ .ProjectName }}_
22
- {{- title .Os }}_
23
- {{- if eq .Arch "amd64" }}x86_64
24
- {{- else if eq .Arch "386" }}i386
25
- {{- else }}{{ .Arch }}{{ end }}
26
- {{- if .Arm }}v{{ .Arm }}{{ end }}
27
- # use zip for windows archives
28
- format_overrides :
29
- - goos : windows
30
- format : zip
25
+ {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
26
+ - id : zip
27
+ format : zip
28
+ # Format override for Windows
29
+ name_template : >-
30
+ {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
31
+ # Checksum section
31
32
checksum :
32
33
name_template : " checksums.txt"
34
+ # Snapshot section
33
35
snapshot :
34
36
name_template : " {{ incpatch .Version }}-next"
37
+ # Changelog section
35
38
changelog :
36
39
sort : asc
37
40
filters :
38
41
exclude :
39
42
- " ^docs:"
40
43
- " ^test:"
41
-
44
+ # Brews section (if applicable)
42
45
brews :
43
- - tap :
46
+ -
47
+ ids :
48
+ - tar_gz
49
+ repository :
44
50
owner : orangekame3
45
51
name : homebrew-tap
46
52
token : " {{ .Env.TAP_GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change 39
39
[tagpr]
40
40
vPrefix = true
41
41
releaseBranch = main
42
- versionFile = version.go
42
+ versionFile = cmd/ version.go
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ package cmd
25
25
import "fmt"
26
26
27
27
// Version is a version of this application.
28
- const Version = "0.0.12 "
28
+ const Version = "0.0.13 "
29
29
30
30
// SetVersionInfo sets version and date to rootCmd
31
31
func SetVersionInfo (version , date string ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments