From 8567512998cacb82163d9a2966fdbadef64e5ce8 Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 16 Jun 2023 05:19:15 -0700 Subject: [PATCH] Use the latest Hugo version Signed-off-by: Tommy --- cloudflare-build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cloudflare-build.sh b/cloudflare-build.sh index 3f4c924..550344d 100644 --- a/cloudflare-build.sh +++ b/cloudflare-build.sh @@ -1,5 +1,11 @@ #!/bin/bash +export GOPROXY=direct +export GOSUMD=off +export CGO_ENABLED=1 + +go install -tags extended github.com/gohugoio/hugo@latest + if [ "$CF_PAGES_BRANCH" == "main" ]; then hugo --minify else