goreleaser.yml (4297B)
1 project_name: hugo
2 env:
3 - GO111MODULE=on
4 - GOPROXY=https://proxy.golang.org
5 before:
6 hooks:
7 - go mod download
8 builds:
9 -
10 binary: hugo
11 id: hugo
12 ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio
13 env:
14 - CGO_ENABLED=0
15 flags:
16 - -buildmode
17 - exe
18 goos:
19 - darwin
20 - linux
21 - windows
22 goarch:
23 - amd64
24 - 386
25 - arm
26 - arm64
27 goarm:
28 - 7
29 ignore:
30 - goos: darwin
31 goarch: 386
32 -
33 binary: hugo
34 id: hugo_unix
35 ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio
36 env:
37 - CGO_ENABLED=0
38 flags:
39 - -buildmode
40 - exe
41 goos:
42 - freebsd
43 - netbsd
44 - openbsd
45 - dragonfly
46 goarch:
47 - amd64
48 -
49 binary: hugo
50 id: hugo_extended_windows
51 ldflags:
52 - -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio
53 - "-extldflags '-static'"
54 env:
55 - CGO_ENABLED=1
56 - CC=x86_64-w64-mingw32-gcc
57 - CXX=x86_64-w64-mingw32-g++
58 flags:
59 - -buildmode
60 - exe
61 - -tags
62 - extended
63 goos:
64 - windows
65 goarch:
66 - amd64
67 - binary: hugo
68 id: hugo_extended_darwin
69 ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio
70 env:
71 - CGO_ENABLED=1
72 - CC=o64-clang
73 - CXX=o64-clang++
74 flags:
75 - -buildmode
76 - exe
77 - -tags
78 - extended
79 goos:
80 - darwin
81 goarch:
82 - amd64
83 - arm64
84 - binary: hugo
85 id: hugo_extended_linux
86 ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio
87 env:
88 - CGO_ENABLED=1
89 flags:
90 - -buildmode
91 - exe
92 - -tags
93 - extended
94 goos:
95 - linux
96 goarch:
97 - amd64
98 hooks:
99 post: ./goreleaser-hook-post-linux.sh
100 release:
101 draft: true
102
103 archives:
104 -
105 id: "hugo"
106 builds: ['hugo', 'hugo_unix']
107 format: tar.gz
108 format_overrides:
109 - goos: windows
110 format: zip
111 name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
112 replacements:
113 amd64: 64bit
114 386: 32bit
115 arm: ARM
116 arm64: ARM64
117 darwin: macOS
118 linux: Linux
119 windows: Windows
120 openbsd: OpenBSD
121 netbsd: NetBSD
122 freebsd: FreeBSD
123 dragonfly: DragonFlyBSD
124 files:
125 - README.md
126 - LICENSE
127 -
128 id: "hugo_extended"
129 builds: ['hugo_extended_windows', 'hugo_extended_linux', 'hugo_extended_darwin']
130 format: tar.gz
131 format_overrides:
132 - goos: windows
133 format: zip
134 name_template: "{{.ProjectName}}_extended_{{.Version}}_{{.Os}}-{{.Arch}}"
135 replacements:
136 amd64: 64bit
137 386: 32bit
138 arm: ARM
139 arm64: ARM64
140 darwin: macOS
141 linux: Linux
142 windows: Windows
143 openbsd: OpenBSD
144 netbsd: NetBSD
145 freebsd: FreeBSD
146 dragonfly: DragonFlyBSD
147 files:
148 - README.md
149 - LICENSE
150
151 nfpms:
152 -
153 id: "hugo"
154 builds: ['hugo']
155 formats:
156 - deb
157 vendor: "gohugo.io"
158 homepage: "https://gohugo.io/"
159 maintainer: "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>"
160 description: "A Fast and Flexible Static Site Generator built with love in GoLang."
161 license: "Apache-2.0"
162 file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
163 replacements:
164 amd64: 64bit
165 386: 32bit
166 arm: ARM
167 arm64: ARM64
168 darwin: macOS
169 linux: Linux
170 windows: Windows
171 openbsd: OpenBSD
172 netbsd: NetBSD
173 freebsd: FreeBSD
174 dragonfly: DragonFlyBSD
175 -
176 id: "hugo_extended"
177 builds: ['hugo_extended_linux']
178 formats:
179 - deb
180 vendor: "gohugo.io"
181 homepage: "https://gohugo.io/"
182 maintainer: "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>"
183 description: "A Fast and Flexible Static Site Generator built with love in GoLang."
184 license: "Apache-2.0"
185 file_name_template: "{{.ProjectName}}_extended_{{.Version}}_{{.Os}}-{{.Arch}}"
186 replacements:
187 amd64: 64bit
188 386: 32bit
189 arm: ARM
190 arm64: ARM64
191 darwin: macOS
192 linux: Linux
193 windows: Windows
194 openbsd: OpenBSD
195 netbsd: NetBSD
196 freebsd: FreeBSD
197 dragonfly: DragonFlyBSD