Debian Codegraph @

hugoreleaser.yaml

raw
1 project: hugo
2
3 # Common definitions.
4 definitions:
5 archive_type_macos: &archive_type_macos
6 extra_files: []
7 type:
8 format: _plugin
9 extension: .pkg
10 plugin:
11 id: macospkgremote
12 type: gorun
13 command: github.com/gohugoio/hugoreleaser-archive-plugins/macospkgremote@93cfa1388b241e71f7896e65b641d9f78ce7618a
14 custom_settings:
15 package_identifier: io.gohugo.hugo
16 package_version:
17 ${HUGORELEASER_TAG}
18 # Needed by Wazero (currently only used when transform.ToMath is used)
19 # Note that we pass this map to s3 which takes metadata as a map of strings.
20 package_entitlements: "com.apple.security.cs.allow-jit,com.apple.security.cs.allow-unsigned-executable-memory"
21 bucket: s3fptest
22 queue: https://sqs.eu-north-1.amazonaws.com/656975317043/s3fptest_client
23 access_key_id: ${S3RPC_CLIENT_ACCESS_KEY_ID}
24 secret_access_key: ${S3RPC_CLIENT_SECRET_ACCESS_KEY}
25 archive_type_zip: &archive_type_zip
26 type:
27 format: zip
28 extension: .zip
29 env_extended_linux: &env_extended_linux
30 - CGO_ENABLED=1
31 - CC=aarch64-linux-gnu-gcc
32 - CXX=aarch64-linux-gnu-g++
33 env_extended_windows: &env_extended_windows
34 - CGO_ENABLED=1
35 - CC=x86_64-w64-mingw32-gcc
36 - CXX=x86_64-w64-mingw32-g++
37 env_extended_darwin: &env_extended_darwin
38 - CGO_ENABLED=1
39 - CC=o64-clang
40 - CXX=o64-clang++
41 name_template_extended_withdeploy: &name_template_extended_withdeploy "{{ .Project }}_extended_withdeploy_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
42 name_template_withdeploy: &name_template_withdeploy "{{ .Project }}_withdeploy_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
43 name_template_extended: &name_template_extended "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
44 archive_deb: &archive_deb
45 binary_dir: /usr/local/bin
46 extra_files: []
47 type:
48 format: _plugin
49 extension: .deb
50 plugin:
51 id: deb
52 type: gorun
53 command: github.com/gohugoio/hugoreleaser-archive-plugins/deb@latest
54 custom_settings:
55 vendor: gohugo.io
56 homepage: https://github.com/gohugoio/hugo
57 maintainer: Bjørn Erik Pedersen <[email protected]>
58 description: A fast and flexible Static Site Generator written in Go.
59 license: Apache-2.0
60 archive_alias_replacements:
61 linux-amd64.tar.gz: Linux-64bit.tar.gz
62 go_settings:
63 go_proxy: https://proxy.golang.org
64 go_exe: go
65 build_settings:
66 binary: hugo
67 flags:
68 - -buildmode
69 - exe
70 env:
71 - CGO_ENABLED=0
72 ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio
73 archive_settings:
74 name_template: "{{ .Project }}_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
75 extra_files:
76 - source_path: README.md
77 target_path: README.md
78 - source_path: LICENSE
79 target_path: LICENSE
80 type:
81 format: tar.gz
82 extension: .tar.gz
83 release_settings:
84 name: ${HUGORELEASER_TAG}
85 type: github
86 repository: hugo
87 repository_owner: gohugoio
88 draft: true
89 prerelease: false
90 release_notes_settings:
91 generate: true
92 short_threshold: 10
93 short_title: What's Changed
94 groups:
95 - regexp: "Merge commit|Squashed|releaser:"
96 ignore: true
97 - title: Note
98 regexp: (note|deprecated)
99 ordinal: 10
100 - title: Bug fixes
101 regexp: fix
102 ordinal: 15
103 - title: Dependency Updates
104 regexp: deps
105 ordinal: 30
106 - title: Build Setup
107 regexp: (snap|release|update to)
108 ordinal: 40
109 - title: Documentation
110 regexp: (doc|readme)
111 ordinal: 40
112 - title: Improvements
113 regexp: .*
114 ordinal: 20
115 builds:
116 - path: container1/unix/regular
117 os:
118 - goos: linux
119 archs:
120 - goarch: amd64
121 - goarch: arm64
122 - goarch: arm
123 build_settings:
124 env:
125 - CGO_ENABLED=0
126 - GOARM=7
127 - goos: dragonfly
128 archs:
129 - goarch: amd64
130 - goos: freebsd
131 archs:
132 - goarch: amd64
133 - goos: netbsd
134 archs:
135 - goarch: amd64
136 - goos: openbsd
137 archs:
138 - goarch: amd64
139 - goos: solaris
140 archs:
141 - goarch: amd64
142 - path: container1/unix/extended
143 build_settings:
144 flags:
145 - -buildmode
146 - exe
147 - -tags
148 - extended
149 env:
150 - CGO_ENABLED=1
151 os:
152 - goos: linux
153 archs:
154 - goarch: amd64
155 - path: container1/unix/extended-withdeploy
156 build_settings:
157 flags:
158 - -buildmode
159 - exe
160 - -tags
161 - extended,withdeploy
162 env:
163 - CGO_ENABLED=1
164 os:
165 - goos: linux
166 archs:
167 - goarch: amd64
168 - path: container1/unix/withdeploy
169 build_settings:
170 flags:
171 - -buildmode
172 - exe
173 - -tags
174 - withdeploy
175 os:
176 - goos: linux
177 archs:
178 - goarch: amd64
179 - goarch: arm64
180 - path: container2/linux/extended
181 build_settings:
182 flags:
183 - -buildmode
184 - exe
185 - -tags
186 - extended
187 os:
188 - goos: linux
189 build_settings:
190 env: *env_extended_linux
191 archs:
192 - goarch: arm64
193 - path: container2/linux/extended-withdeploy
194 build_settings:
195 flags:
196 - -buildmode
197 - exe
198 - -tags
199 - extended,withdeploy
200 os:
201 - goos: linux
202 build_settings:
203 env: *env_extended_linux
204 archs:
205 - goarch: arm64
206 - path: container1/macos/regular
207 os:
208 - goos: darwin
209 archs:
210 - goarch: universal
211 - path: container1/macos/extended
212 build_settings:
213 flags:
214 - -buildmode
215 - exe
216 - -tags
217 - extended
218 env: *env_extended_darwin
219 os:
220 - goos: darwin
221 archs:
222 - goarch: universal
223 - path: container1/macos/extended-withdeploy
224 build_settings:
225 flags:
226 - -buildmode
227 - exe
228 - -tags
229 - extended,withdeploy
230 env: *env_extended_darwin
231 os:
232 - goos: darwin
233 archs:
234 - goarch: universal
235 - path: container1/macos/withdeploy
236 build_settings:
237 flags:
238 - -buildmode
239 - exe
240 - -tags
241 - withdeploy
242 os:
243 - goos: darwin
244 archs:
245 - goarch: universal
246 - path: container1/windows/regular
247 os:
248 - goos: windows
249 build_settings:
250 binary: hugo.exe
251 archs:
252 - goarch: amd64
253 - goarch: arm64
254 - path: container1/windows/extended
255 build_settings:
256 flags:
257 - -buildmode
258 - exe
259 - -tags
260 - extended
261 env: *env_extended_windows
262 ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio -extldflags '-static'
263 os:
264 - goos: windows
265 build_settings:
266 binary: hugo.exe
267 archs:
268 - goarch: amd64
269 - path: container1/windows/extended-withdeploy
270 build_settings:
271 flags:
272 - -buildmode
273 - exe
274 - -tags
275 - extended,withdeploy
276 env: *env_extended_windows
277 ldflags: -s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio -extldflags '-static'
278 os:
279 - goos: windows
280 build_settings:
281 binary: hugo.exe
282 archs:
283 - goarch: amd64
284 - path: container1/windows/withdeploy
285 build_settings:
286 flags:
287 - -buildmode
288 - exe
289 - -tags
290 - withdeploy
291 os:
292 - goos: windows
293 build_settings:
294 binary: hugo.exe
295 archs:
296 - goarch: amd64
297 archives:
298 - paths:
299 - builds/container1/unix/regular/**
300 - paths:
301 - builds/container1/unix/extended/**
302 archive_settings:
303 name_template: *name_template_extended
304 - paths:
305 - builds/container1/unix/extended-withdeploy/**
306 archive_settings:
307 name_template: *name_template_extended_withdeploy
308 - paths:
309 - builds/container1/unix/withdeploy/**
310 archive_settings:
311 name_template: *name_template_withdeploy
312 - paths:
313 - builds/container2/*/extended/**
314 archive_settings:
315 name_template: *name_template_extended
316 - paths:
317 - builds/container2/*/extended-withdeploy/**
318 archive_settings:
319 name_template: *name_template_extended_withdeploy
320 - paths:
321 - builds/**/macos/regular/**
322 archive_settings: *archive_type_macos
323 - paths:
324 - builds/**/macos/extended/**
325 archive_settings:
326 name_template: *name_template_extended
327 <<: *archive_type_macos
328 - paths:
329 - builds/**/macos/extended-withdeploy/**
330 archive_settings:
331 name_template: *name_template_extended_withdeploy
332 <<: *archive_type_macos
333 - paths:
334 - builds/**/macos/withdeploy/**
335 archive_settings:
336 name_template: *name_template_withdeploy
337 <<: *archive_type_macos
338 - paths:
339 - builds/**/windows/regular/**
340 archive_settings: *archive_type_zip
341 - paths:
342 - builds/**/windows/extended/**
343 archive_settings:
344 name_template: *name_template_extended
345 <<: *archive_type_zip
346 - paths:
347 - builds/**/windows/extended-withdeploy/**
348 archive_settings:
349 name_template: *name_template_extended_withdeploy
350 <<: *archive_type_zip
351 - paths:
352 - builds/**/windows/withdeploy/**
353 archive_settings:
354 name_template: *name_template_withdeploy
355 <<: *archive_type_zip
356 - paths:
357 - builds/**/regular/linux/{arm64,amd64}
358 archive_settings: *archive_deb
359 - paths:
360 - builds/**/extended/linux/{arm64,amd64}
361 archive_settings:
362 name_template: *name_template_extended
363 <<: *archive_deb
364 - paths:
365 - builds/**/extended-withdeploy/linux/{arm64,amd64}
366 archive_settings:
367 name_template: *name_template_extended_withdeploy
368 <<: *archive_deb
369 - paths:
370 - builds/**/withdeploy/linux/{arm64,amd64}
371 archive_settings:
372 name_template: *name_template_withdeploy
373 <<: *archive_deb
374 releases:
375 - paths:
376 - archives/**
377 path: r1