@@ -15,7 +15,12 @@ builds:
1515 - amd64
1616 - arm64
1717 main : ./main.go
18- ldflags : " -X github.com/libost/sticker_go/version.Version={{ if eq .Env.RELEASE_CHANNEL \" dev\" }}{{ .ShortCommit }}{{ else }}{{ .Version }}{{ end }} -X github.com/libost/sticker_go/version.BuildTime={{.Date}} -X github.com/libost/sticker_go/version.GitCommit={{.ShortCommit}} -X github.com/libost/sticker_go/version.Branch={{.Branch}}"
18+ ldflags : |
19+ -X github.com/libost/sticker_go/version.Version={{ if eq .Env.RELEASE_CHANNEL "dev" }}{{ .ShortCommit }}{{ else }}{{ .Version }}{{ end }}
20+ -X github.com/libost/sticker_go/version.BuildTime={{.Date}}
21+ -X github.com/libost/sticker_go/version.GitCommit={{.ShortCommit}}
22+ -X github.com/libost/sticker_go/version.Branch={{.Branch}}
23+ {{ if eq .Env.RELEASE_CHANNEL "stable" }}-s -w{{ end }}
1924 binary : sticker_go
2025
2126 - id : windows
@@ -27,7 +32,12 @@ builds:
2732 - amd64
2833 - arm64
2934 main : ./main.go
30- ldflags : " -X github.com/libost/sticker_go/version.Version={{ if eq .Env.RELEASE_CHANNEL \" dev\" }}{{ .ShortCommit }}{{ else }}{{ .Version }}{{ end }} -X github.com/libost/sticker_go/version.BuildTime={{.Date}} -X github.com/libost/sticker_go/version.GitCommit={{.ShortCommit}} -X github.com/libost/sticker_go/version.Branch={{.Branch}}"
35+ ldflags : |
36+ -X github.com/libost/sticker_go/version.Version={{ if eq .Env.RELEASE_CHANNEL "dev" }}{{ .ShortCommit }}{{ else }}{{ .Version }}{{ end }}
37+ -X github.com/libost/sticker_go/version.BuildTime={{.Date}}
38+ -X github.com/libost/sticker_go/version.GitCommit={{.ShortCommit}}
39+ -X github.com/libost/sticker_go/version.Branch={{.Branch}}
40+ {{ if eq .Env.RELEASE_CHANNEL "stable" }}-s -w{{ end }}
3141 binary : sticker_go
3242
3343 - id : macos
@@ -39,7 +49,12 @@ builds:
3949 - amd64
4050 - arm64
4151 main : ./main.go
42- ldflags : " -X github.com/libost/sticker_go/version.Version={{ if eq .Env.RELEASE_CHANNEL \" dev\" }}{{ .ShortCommit }}{{ else }}{{ .Version }}{{ end }} -X github.com/libost/sticker_go/version.BuildTime={{.Date}} -X github.com/libost/sticker_go/version.GitCommit={{.ShortCommit}} -X github.com/libost/sticker_go/version.Branch={{.Branch}}"
52+ ldflags : |
53+ -X github.com/libost/sticker_go/version.Version={{ if eq .Env.RELEASE_CHANNEL "dev" }}{{ .ShortCommit }}{{ else }}{{ .Version }}{{ end }}
54+ -X github.com/libost/sticker_go/version.BuildTime={{.Date}}
55+ -X github.com/libost/sticker_go/version.GitCommit={{.ShortCommit}}
56+ -X github.com/libost/sticker_go/version.Branch={{.Branch}}
57+ {{ if eq .Env.RELEASE_CHANNEL "stable" }}-s -w{{ end }}
4358 binary : sticker_go
4459
4560archives :
@@ -101,6 +116,8 @@ announce:
101116 enabled : true
102117 chat_id : " @BangDream0114"
103118 message_template : |
119+ \#{{ .ProjectName | mdv2escape }} {{ if eq .Env.RELEASE_CHANNEL "dev" }}测试版{{ else }}新版本{{ end }}信息
120+
104121 {{ if eq .Env.RELEASE_CHANNEL "dev" }}🚀 {{ .ProjectName | mdv2escape }} 新测试版发行: {{ .ShortCommit | mdv2escape }}{{ else }}🎉 {{ .ProjectName | mdv2escape }} 新版本发行: {{ .Tag | mdv2escape }}{{ end }}
105122
106123 [有问题点我反馈]({{ .Env.FEEDBACK | mdv2escape }})
0 commit comments