File tree 1 file changed +93
-0
lines changed
1 file changed +93
-0
lines changed 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
3
+ before :
4
+ hooks :
5
+ - go mod tidy
6
+ - go generate ./...
7
+ builds :
8
+ - env :
9
+ - CGO_ENABLED=0
10
+ goos :
11
+ - linux
12
+ - windows
13
+ - darwin
14
+ goarch :
15
+ - amd64
16
+ - " 386"
17
+ - arm
18
+ archives :
19
+ - replacements :
20
+ darwin : Darwin
21
+ linux : Linux
22
+ windows : Windows
23
+ 386 : i386
24
+ amd64 : x86_64
25
+ checksum :
26
+ name_template : ' checksums.txt'
27
+ snapshot :
28
+ name_template : " {{ incpatch .Version }}-next"
29
+ changelog :
30
+ sort : asc
31
+ filters :
32
+ exclude :
33
+ - ' ^docs:'
34
+ - ' ^test:'
35
+
36
+ release :
37
+ draft : true
38
+ header : |
39
+ ## Hi! 欢迎使用HDU-CLI ({{ .Date }})
40
+
41
+ 此处是版本介绍
42
+
43
+ footer : |
44
+ ## 谢谢!
45
+
46
+ 以上就是在 {{ .Tag }} 上的改动!
47
+ name_template : " {{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
48
+
49
+
50
+ nfpms :
51
+ -
52
+ # ID of the nfpm config, must be unique.
53
+ # Defaults to "default".
54
+ id : packages
55
+
56
+ # Replacements for GOOS and GOARCH in the package name.
57
+ # Keys should be valid GOOSs or GOARCHs.
58
+ # Values are the respective replacements.
59
+ # Default is empty.
60
+ replacements :
61
+ amd64 : 64-bit
62
+ 386 : 32-bit
63
+ darwin : macOS
64
+ linux : Tux
65
+
66
+ # Your app's vendor.
67
+ # Default is empty.
68
+ vendor : HDUHELP
69
+
70
+ # Template to your app's homepage.
71
+ # Default is empty.
72
+ homepage : https://github.com/hduhelp/hdu-cli
73
+
74
+ # Your app's maintainer (probably you).
75
+ # Default is empty.
76
+ maintainer : HDUHELP
77
+ # Your app's license.
78
+ # Default is empty.
79
+ license : Apache 2.0
80
+
81
+ # Formats to be generated.
82
+ formats :
83
+ - deb
84
+ - rpm
85
+
86
+ publishers :
87
+ - name : fury.io
88
+ # by specifying `packages` id here goreleaser will only use this publisher
89
+ # with artifacts identified by this id{{ .Env.FURY_TOKEN }}
90
+ ids :
91
+ - packages
92
+ dir : " {{ dir .ArtifactPath }}"
93
+ cmd : curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/netdevops/
You can’t perform that action at this time.
0 commit comments