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