-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
172 lines (135 loc) · 4.32 KB
/
Copy path.goreleaser.yaml
File metadata and controls
172 lines (135 loc) · 4.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# .goreleaser.yaml
version: 2
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
- go generate ./...
snapshot:
version_template: "{{ incpatch .Version }}-next"
builds:
- main: ./cmd/ip_scanner
id: ip_scanner
binary: ip_scanner
env:
- CGO_ENABLED=0
targets:
- windows_amd64
- linux_amd64
- darwin_amd64
- darwin_arm64
- main: ./cmd/cloudflare
id: cloudflare
binary: cloudflare
env:
- CGO_ENABLED=0
targets:
- windows_amd64
- linux_amd64
- darwin_amd64
- darwin_arm64
- main: ./cmd/fetch_ip_ranges
id: fetch_ip_ranges
binary: fetch_ip_ranges
env:
- CGO_ENABLED=0
targets:
- windows_amd64
- linux_amd64
- darwin_amd64
- darwin_arm64
- main: ./cmd/google_translate
id: google_translate
binary: google_translate
env:
- CGO_ENABLED=0
targets:
- windows_amd64
- linux_amd64
- darwin_amd64
- darwin_arm64
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
- configs/*
- data/*
checksum:
name_template: "checksums.txt"
changelog:
sort: asc # 按提交时间升序排序,最早的提交显示在最前面
use: github
filters:
exclude:
- "^test(:|\\()"
- "merge conflict"
- "Merge (pull request|remote-tracking branch|branch)"
- "go mod tidy"
- "^更新文件"
- "^测试(:|\\()"
groups:
# feat(UI): 新增用户登录界面、新增: 实现用户认证功能。
- title: "New Features" # “新功能”
regexp: '^.*?(feat|功能|新增|feature)(\(.+\))??!?[-:\s].+$'
order: 100 # 排序优先级
# fix: 修复UI组件加载延迟问题
- title: "Bug fixes" # “Bug 修复”
regexp: '^.*?(fix|修复|bug|错误|bugfix)(\(.+\))??!?[-:\s].+$'
order: 200
# sec: 修复 XSS 漏洞,增强安全策略。
- title: "Security updates" # “安全更新”
regexp: '^.*?(sec|安全|漏洞|security)(\(.+\))??!?[-:\s].+$'
order: 300
# deps: 更新依赖库版本,提升稳定性。
- title: "Dependency updates" # “依赖更新”
regexp: '^.*?(deps|依赖|dependency)(\(.+\))??!?[-:\s].+$'
order: 400
# docs: 更新API使用说明,添加示例代码。
- title: "Documentation updates" # “文档更新”
regexp: '^.*?(docs?|文档|说明|documentation|注释)(\(.+\))??!?[-:\s].+$'
order: 500
# i18n: 添加西班牙语翻译,完善国际化支持。
- title: "Translation updates" # “翻译更新”
regexp: '^.*?(i18n|翻译|localization|国际化|本地化)(\(.+\))??!?[-:\s].+$'
order: 600
# optimization: 优化用户登录流程,减少加载时间。
- title: "Code Optimization" # “代码优化”
regexp: '^.*?(optimization|优化|性能|代码|performance|refactor)(\(.+\))??!?[-:\s].+$'
order: 700
# config: 更新环境变量配置文件。
- title: "Config updates" # “配置更新”
regexp: '^.*?(config|配置|configuration)(\(.+\))??!?[-:\s].+$'
order: 800
# ci(build): 添加持续集成任务,自动构建和发布。
- title: "Build process updates" # “构建过程更新”
regexp: '^.*?(build|ci|构建|持续集成)(\(.+\))??!?[-:\s].+$'
order: 900
# test: 增加单元测试用例,覆盖率提升到 85%。
- title: "Test-related changes" # “测试相关变更”
regexp: '^.*?(test|测试|单元测试|集成测试)(\(.+\))??!?[-:\s].+$'
order: 950
# chore: 更新项目文档索引,整理文件结构。
- title: "Other work" # “其他工作”
order: 9999
release:
name_template: "v{{ .Version }} {{.TagSubject}}"
replace_existing_artifacts: true
mode: replace
header: |
**Latest Update:**
> {{.TagContents}}
Released in {{ .CommitDate }}
footer: |
**Full Changelog**: https://github.com/sinspired/ip-scanner/compare/{{ .PreviousTag }}...{{ if .IsNightly }}nightly{{ else }}{{ .Tag }}{{ end }}