From 81a5cdca0788ca39574a17d444c9db29d0b19e27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 31 Mar 2026 18:06:04 +0200 Subject: [PATCH] releaser: Add standard withdeploy release assets Closes #14687 Co-Authored-By: Claude Opus 4.6 (1M context) --- hugoreleaser.yaml | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/hugoreleaser.yaml b/hugoreleaser.yaml index 6cbf0f212..1ad00dbf1 100644 --- a/hugoreleaser.yaml +++ b/hugoreleaser.yaml @@ -39,6 +39,7 @@ definitions: - CC=o64-clang - CXX=o64-clang++ name_template_extended_withdeploy: &name_template_extended_withdeploy "{{ .Project }}_extended_withdeploy_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" + name_template_withdeploy: &name_template_withdeploy "{{ .Project }}_withdeploy_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" name_template_extended: &name_template_extended "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" archive_deb: &archive_deb binary_dir: /usr/local/bin @@ -164,6 +165,18 @@ builds: - goos: linux archs: - goarch: amd64 + - path: container1/unix/withdeploy + build_settings: + flags: + - -buildmode + - exe + - -tags + - withdeploy + os: + - goos: linux + archs: + - goarch: amd64 + - goarch: arm64 - path: container2/linux/extended build_settings: flags: @@ -219,6 +232,17 @@ builds: - goos: darwin archs: - goarch: universal + - path: container1/macos/withdeploy + build_settings: + flags: + - -buildmode + - exe + - -tags + - withdeploy + os: + - goos: darwin + archs: + - goarch: universal - path: container1/windows/regular os: - goos: windows @@ -257,6 +281,19 @@ builds: binary: hugo.exe archs: - goarch: amd64 + - path: container1/windows/withdeploy + build_settings: + flags: + - -buildmode + - exe + - -tags + - withdeploy + os: + - goos: windows + build_settings: + binary: hugo.exe + archs: + - goarch: amd64 archives: - paths: - builds/container1/unix/regular/** @@ -268,6 +305,10 @@ archives: - builds/container1/unix/extended-withdeploy/** archive_settings: name_template: *name_template_extended_withdeploy + - paths: + - builds/container1/unix/withdeploy/** + archive_settings: + name_template: *name_template_withdeploy - paths: - builds/container2/*/extended/** archive_settings: @@ -289,6 +330,11 @@ archives: archive_settings: name_template: *name_template_extended_withdeploy <<: *archive_type_macos + - paths: + - builds/**/macos/withdeploy/** + archive_settings: + name_template: *name_template_withdeploy + <<: *archive_type_macos - paths: - builds/**/windows/regular/** archive_settings: *archive_type_zip @@ -302,6 +348,11 @@ archives: archive_settings: name_template: *name_template_extended_withdeploy <<: *archive_type_zip + - paths: + - builds/**/windows/withdeploy/** + archive_settings: + name_template: *name_template_withdeploy + <<: *archive_type_zip - paths: - builds/**/regular/linux/{arm64,amd64} archive_settings: *archive_deb @@ -315,6 +366,11 @@ archives: archive_settings: name_template: *name_template_extended_withdeploy <<: *archive_deb + - paths: + - builds/**/withdeploy/linux/{arm64,amd64} + archive_settings: + name_template: *name_template_withdeploy + <<: *archive_deb releases: - paths: - archives/** -- 2.39.5