-
Notifications
You must be signed in to change notification settings - Fork 35
/
.goreleaser.yaml
84 lines (74 loc) · 1.67 KB
/
.goreleaser.yaml
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
env:
- GO111MODULE=on
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- '7'
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarch: arm
- goos: darwin
goarch: arm
ldflags:
- -X github.com/RicheyJang/PaimengBot/plugins/inspection.Version=v{{.Version}}
main: ./cmd
binary: "paimeng" # 可执行文件名
archives:
-
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
wrap_in_directory: "paimengbot" # 压缩包内文件夹名,false为各文件独立
files:
# a more complete example, check the globbing deep dive below
- src: 'release/data/dialogue/*'
dst: 'data/dialogue'
strip_parent: true
- src: 'release/ttf/*'
dst: 'ttf'
strip_parent: true
checksum:
disable: true
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
groups:
- title: 新增
regexp: "^add[\\w\\s]*:+.*$"
order: 0
- title: '修复'
regexp: "^fix[\\s]*:+.*$"
order: 1
filters:
exclude:
- "^docs:"
- "^test:"
- fix typo
- Merge pull request
- Merge branch
- Merge remote-tracking
- go mod tidy