Skip to content

Commit 81a5cdc

Browse files
bepclaude
andcommitted
releaser: Add standard withdeploy release assets
Closes #14687 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent df520e3 commit 81a5cdc

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

hugoreleaser.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ definitions:
3939
- CC=o64-clang
4040
- CXX=o64-clang++
4141
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 }}"
4243
name_template_extended: &name_template_extended "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
4344
archive_deb: &archive_deb
4445
binary_dir: /usr/local/bin
@@ -164,6 +165,18 @@ builds:
164165
- goos: linux
165166
archs:
166167
- 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
167180
- path: container2/linux/extended
168181
build_settings:
169182
flags:
@@ -219,6 +232,17 @@ builds:
219232
- goos: darwin
220233
archs:
221234
- 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
222246
- path: container1/windows/regular
223247
os:
224248
- goos: windows
@@ -257,6 +281,19 @@ builds:
257281
binary: hugo.exe
258282
archs:
259283
- 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
260297
archives:
261298
- paths:
262299
- builds/container1/unix/regular/**
@@ -268,6 +305,10 @@ archives:
268305
- builds/container1/unix/extended-withdeploy/**
269306
archive_settings:
270307
name_template: *name_template_extended_withdeploy
308+
- paths:
309+
- builds/container1/unix/withdeploy/**
310+
archive_settings:
311+
name_template: *name_template_withdeploy
271312
- paths:
272313
- builds/container2/*/extended/**
273314
archive_settings:
@@ -289,6 +330,11 @@ archives:
289330
archive_settings:
290331
name_template: *name_template_extended_withdeploy
291332
<<: *archive_type_macos
333+
- paths:
334+
- builds/**/macos/withdeploy/**
335+
archive_settings:
336+
name_template: *name_template_withdeploy
337+
<<: *archive_type_macos
292338
- paths:
293339
- builds/**/windows/regular/**
294340
archive_settings: *archive_type_zip
@@ -302,6 +348,11 @@ archives:
302348
archive_settings:
303349
name_template: *name_template_extended_withdeploy
304350
<<: *archive_type_zip
351+
- paths:
352+
- builds/**/windows/withdeploy/**
353+
archive_settings:
354+
name_template: *name_template_withdeploy
355+
<<: *archive_type_zip
305356
- paths:
306357
- builds/**/regular/linux/{arm64,amd64}
307358
archive_settings: *archive_deb
@@ -315,6 +366,11 @@ archives:
315366
archive_settings:
316367
name_template: *name_template_extended_withdeploy
317368
<<: *archive_deb
369+
- paths:
370+
- builds/**/withdeploy/linux/{arm64,amd64}
371+
archive_settings:
372+
name_template: *name_template_withdeploy
373+
<<: *archive_deb
318374
releases:
319375
- paths:
320376
- archives/**

0 commit comments

Comments
 (0)