-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yaml
86 lines (74 loc) · 1.8 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
85
86
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
- arm
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
header: |
## Hi! 欢迎使用HDU-CLI ({{ .Date }})
此处是版本介绍
footer: |
## 感谢您的支持!
以上就是在 {{ .Tag }} 上的改动!
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
nfpms:
-
# ID of the nfpm config, must be unique.
# Defaults to "default".
id: packages
# Replacements for GOOS and GOARCH in the package name.
# Keys should be valid GOOSs or GOARCHs.
# Values are the respective replacements.
# Default is empty.
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
linux: Tux
# Your app's vendor.
# Default is empty.
vendor: HDUHELP
# Template to your app's homepage.
# Default is empty.
homepage: https://github.com/hduhelp/hdu-cli
# Your app's maintainer (probably you).
# Default is empty.
maintainer: HDUHELP
# Your app's license.
# Default is empty.
license: Apache 2.0
# Formats to be generated.
formats:
- deb
- rpm
publishers:
- name: fury.io
# by specifying `packages` id here goreleaser will only use this publisher
# with artifacts identified by this id{{ .Env.FURY_TOKEN }}
ids:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/{{ .Env.FURY_USER_NAME }}/