github.com/neohugo/neohugo@v0.123.8/hugoreleaser.toml (about) 1 project = "hugo" 2 3 # In Hugo v0.103.0 we removed the archive name replacements (e.g. amd64 => 64bit). 4 # Using standard GOOS/GOARCH values makes it easier for scripts out there, 5 # but to prevent breakage in Netlify etc. that has adopted to the old names, 6 # we create aliases for the most common variants. 7 # According to download numbers from v0.101.0, these are by a good margin the two most popular: 8 # hugo_extended_0.101.0_Linux-64bit.tar.gz Downloaded 129,016 times 9 # hugo_0.101.0_Linux-64bit.tar.gz Downloaded 87,846 times 10 # This replacement will create 2 extra alias archives. 11 archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" } 12 13 [go_settings] 14 go_proxy = "https://proxy.golang.org" 15 go_exe = "go" 16 17 [build_settings] 18 binary = "hugo" 19 flags = ["-buildmode", "exe"] 20 env = ["CGO_ENABLED=0"] 21 ldflags = "-s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio" 22 23 [archive_settings] 24 name_template = "{{ .Project }}_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" 25 extra_files = [ 26 { source_path = "README.md", target_path = "README.md" }, 27 { source_path = "LICENSE", target_path = "LICENSE" }, 28 ] 29 [archive_settings.type] 30 format = "tar.gz" 31 extension = ".tar.gz" 32 33 [release_settings] 34 name = "${HUGORELEASER_TAG}" 35 type = "github" 36 repository = "hugo" 37 repository_owner = "gohugoio" 38 draft = true 39 prerelease = false 40 41 [release_settings.release_notes_settings] 42 # Use Hugoreleaser's autogenerated release notes. 43 generate = true 44 45 # Collapse releases with < 10 changes below one title. 46 short_threshold = 10 47 short_title = "What's Changed" 48 49 groups = [ 50 # Group the changes in the release notes by title. 51 # You need at least one. 52 # The groups will be tested in order until a match is found. 53 # The titles will so be listed in the given order in the release note. 54 # Any match with ignore=true title will be dropped. 55 { regexp = "Merge commit|Squashed|releaser:", ignore = true }, 56 { title = "Note", regexp = "(note|deprecated)", ordinal = 10 }, 57 { title = "Bug fixes", regexp = "fix", ordinal = 15 }, 58 { title = "Dependency Updates", regexp = "deps", ordinal = 30 }, 59 { title = "Build Setup", regexp = "(snap|release|update to)", ordinal = 40 }, 60 { title = "Documentation", regexp = "(doc|readme)", ordinal = 40 }, 61 { title = "Improvements", regexp = ".*", ordinal = 20 }, 62 ] 63 64 [[builds]] 65 path = "container1/unix/regular" 66 67 [[builds.os]] 68 goos = "darwin" 69 [[builds.os.archs]] 70 goarch = "universal" 71 [[builds.os]] 72 goos = "linux" 73 [[builds.os.archs]] 74 goarch = "amd64" 75 [[builds.os.archs]] 76 goarch = "arm64" 77 [[builds.os.archs]] 78 goarch = "arm" 79 [builds.os.archs.build_settings] 80 env = ["CGO_ENABLED=0", "GOARM=7"] 81 82 # Unix BSD variants 83 [[builds.os]] 84 goos = "dragonfly" 85 [[builds.os.archs]] 86 goarch = "amd64" 87 [[builds.os]] 88 goos = "freebsd" 89 [[builds.os.archs]] 90 goarch = "amd64" 91 [[builds.os]] 92 goos = "netbsd" 93 [[builds.os.archs]] 94 goarch = "amd64" 95 [[builds.os]] 96 goos = "openbsd" 97 [[builds.os.archs]] 98 goarch = "amd64" 99 [[builds.os]] 100 goos = "solaris" 101 [[builds.os.archs]] 102 goarch = "amd64" 103 104 [[builds]] 105 path = "container1/unix/extended" 106 107 [builds.build_settings] 108 flags = ["-buildmode", "exe", "-tags", "extended"] 109 env = ["CGO_ENABLED=1"] 110 111 [[builds.os]] 112 goos = "darwin" 113 [builds.os.build_settings] 114 env = ["CGO_ENABLED=1", "CC=o64-clang", "CXX=o64-clang++"] 115 [[builds.os.archs]] 116 goarch = "universal" 117 [[builds.os]] 118 goos = "linux" 119 [[builds.os.archs]] 120 goarch = "amd64" 121 122 [[builds]] 123 path = "container2/linux/extended" 124 125 [builds.build_settings] 126 flags = ["-buildmode", "exe", "-tags", "extended"] 127 128 [[builds.os]] 129 goos = "linux" 130 [builds.os.build_settings] 131 env = [ 132 "CGO_ENABLED=1", 133 "CC=aarch64-linux-gnu-gcc", 134 "CXX=aarch64-linux-gnu-g++", 135 ] 136 [[builds.os.archs]] 137 goarch = "arm64" 138 139 [[builds]] 140 path = "container1/windows/regular" 141 142 [[builds.os]] 143 goos = "windows" 144 [builds.os.build_settings] 145 binary = "hugo.exe" 146 [[builds.os.archs]] 147 goarch = "amd64" 148 [[builds.os.archs]] 149 goarch = "arm64" 150 151 [[builds]] 152 path = "container1/windows/extended" 153 154 [builds.build_settings] 155 flags = ["-buildmode", "exe", "-tags", "extended"] 156 env = [ 157 "CGO_ENABLED=1", 158 "CC=x86_64-w64-mingw32-gcc", 159 "CXX=x86_64-w64-mingw32-g++", 160 ] 161 ldflags = "-s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio -extldflags '-static'" 162 163 [[builds.os]] 164 goos = "windows" 165 [builds.os.build_settings] 166 binary = "hugo.exe" 167 [[builds.os.archs]] 168 goarch = "amd64" 169 170 [[archives]] 171 paths = ["builds/container1/unix/regular/**"] 172 [[archives]] 173 paths = ["builds/container1/unix/extended/**"] 174 [archives.archive_settings] 175 name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" 176 [[archives]] 177 # Only extended builds in container2. 178 paths = ["builds/container2/**"] 179 [archives.archive_settings] 180 name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" 181 [[archives]] 182 paths = ["builds/**/windows/regular/**"] 183 [archives.archive_settings.type] 184 format = "zip" 185 extension = ".zip" 186 [[archives]] 187 paths = ["builds/**/windows/extended/**"] 188 [archives.archive_settings] 189 name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" 190 [archives.archive_settings.type] 191 format = "zip" 192 extension = ".zip" 193 [[archives]] 194 paths = ["builds/**/regular/linux/{arm64,amd64}"] 195 [archives.archive_settings] 196 binary_dir = "/usr/local/bin" 197 extra_files = [] 198 [archives.archive_settings.type] 199 format = "_plugin" 200 extension = ".deb" 201 [archives.archive_settings.plugin] 202 id = "deb" 203 type = "gorun" 204 command = "github.com/gohugoio/hugoreleaser-archive-plugins/deb@v0.6.1" 205 [archives.archive_settings.custom_settings] 206 vendor = "gohugo.io" 207 homepage = "https://github.com/gohugoio/hugo" 208 maintainer = "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>" 209 description = "A fast and flexible Static Site Generator written in Go." 210 license = "Apache-2.0" 211 [[archives]] 212 paths = ["builds/**/extended/linux/{arm64,amd64}"] 213 [archives.archive_settings] 214 binary_dir = "/usr/local/bin" 215 extra_files = [] 216 name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}" 217 [archives.archive_settings.type] 218 format = "_plugin" 219 extension = ".deb" 220 [archives.archive_settings.plugin] 221 id = "deb" 222 type = "gorun" 223 command = "github.com/gohugoio/hugoreleaser-archive-plugins/deb@latest" 224 [archives.archive_settings.custom_settings] 225 vendor = "gohugo.io" 226 homepage = "https://github.com/gohugoio/hugo" 227 maintainer = "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>" 228 description = "A fast and flexible Static Site Generator written in Go." 229 license = "Apache-2.0" 230 231 [[releases]] 232 paths = ["archives/**"] 233 path = "r1" 234 235 # The above should allow the following build commands: 236 # hugoreleaser build -paths "builds/container1/**" 237 # hugoreleaser build -paths "builds/container2/**" 238 # hugoreleaser archive 239 # hugoreleaser release