mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Use standard GOOS/GOARCH values in release archives
But create aliases with old filenames for the 2 most downloaded archives (to avoid Netlify etc. breaking). Fixes #10073
This commit is contained in:
parent
8e77bcc930
commit
3f0b40f674
2 changed files with 13 additions and 15 deletions
|
@ -4,7 +4,7 @@ parameters:
|
||||||
defaults: &defaults
|
defaults: &defaults
|
||||||
resource_class: large
|
resource_class: large
|
||||||
docker:
|
docker:
|
||||||
- image: bepsays/ci-hugoreleaser:1.21900.20002
|
- image: bepsays/ci-hugoreleaser:1.21900.20003
|
||||||
environment: &buildenv
|
environment: &buildenv
|
||||||
GOMODCACHE: /root/project/gomodcache
|
GOMODCACHE: /root/project/gomodcache
|
||||||
version: 2
|
version: 2
|
||||||
|
@ -60,7 +60,7 @@ jobs:
|
||||||
environment:
|
environment:
|
||||||
<<: [*buildenv]
|
<<: [*buildenv]
|
||||||
docker:
|
docker:
|
||||||
- image: bepsays/ci-hugoreleaser-linux-arm64:1.21900.20002
|
- image: bepsays/ci-hugoreleaser-linux-arm64:1.21900.20003
|
||||||
steps:
|
steps:
|
||||||
- *restore-cache
|
- *restore-cache
|
||||||
- &attach-workspace
|
- &attach-workspace
|
||||||
|
|
|
@ -1,5 +1,15 @@
|
||||||
project = "hugo"
|
project = "hugo"
|
||||||
|
|
||||||
|
# In Hugo v0.103.0 we removed the archive name replacements (e.g. amd64 => 64bit).
|
||||||
|
# Using standard GOOS/GOARCH values makes it easier for scripts out there,
|
||||||
|
# but to prevent breakage in Netlify etc. that has adopted to the old names,
|
||||||
|
# we create aliases for the most common variants.
|
||||||
|
# According to download numbers from v0.101.0, these are by a good margin the two most popular:
|
||||||
|
# hugo_extended_0.101.0_Linux-64bit.tar.gz Downloaded 129,016 times
|
||||||
|
# hugo_0.101.0_Linux-64bit.tar.gz Downloaded 87,846 times
|
||||||
|
# This replacement will create 2 extra alias archives.
|
||||||
|
archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
|
||||||
|
|
||||||
[go_settings]
|
[go_settings]
|
||||||
go_proxy = "https://proxy.golang.org"
|
go_proxy = "https://proxy.golang.org"
|
||||||
go_exe = "go"
|
go_exe = "go"
|
||||||
|
@ -19,18 +29,6 @@ project = "hugo"
|
||||||
[archive_settings.type]
|
[archive_settings.type]
|
||||||
format = "tar.gz"
|
format = "tar.gz"
|
||||||
extension = ".tar.gz"
|
extension = ".tar.gz"
|
||||||
[archive_settings.replacements]
|
|
||||||
amd64 = "64bit"
|
|
||||||
386 = "32bit"
|
|
||||||
arm = "ARM"
|
|
||||||
arm64 = "ARM64"
|
|
||||||
darwin = "macOS"
|
|
||||||
linux = "Linux"
|
|
||||||
windows = "Windows"
|
|
||||||
openbsd = "OpenBSD"
|
|
||||||
netbsd = "NetBSD"
|
|
||||||
freebsd = "FreeBSD"
|
|
||||||
dragonfly = "DragonFlyBSD"
|
|
||||||
|
|
||||||
[release_settings]
|
[release_settings]
|
||||||
name = "${HUGORELEASER_TAG}"
|
name = "${HUGORELEASER_TAG}"
|
||||||
|
@ -198,7 +196,7 @@ project = "hugo"
|
||||||
[archives.archive_settings.plugin]
|
[archives.archive_settings.plugin]
|
||||||
id = "deb"
|
id = "deb"
|
||||||
type = "gorun"
|
type = "gorun"
|
||||||
command = "github.com/gohugoio/hugoreleaser-archive-plugins/deb@v0.5.0"
|
command = "github.com/gohugoio/hugoreleaser-archive-plugins/deb@v0.6.1"
|
||||||
[archives.archive_settings.custom_settings]
|
[archives.archive_settings.custom_settings]
|
||||||
vendor = "gohugo.io"
|
vendor = "gohugo.io"
|
||||||
homepage = "https://github.com/gohugoio/hugoreleaser"
|
homepage = "https://github.com/gohugoio/hugoreleaser"
|
||||||
|
|
Loading…
Reference in a new issue