From d708140d38a992fb6d0e2efeb063a5a63ea87d3a Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 31 Oct 2023 16:07:57 -0700 Subject: [PATCH] Pin Hugo v0.119.0 --- cloudflare-build.sh | 4 +++- netlify.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cloudflare-build.sh b/cloudflare-build.sh index d6f4261..e1bb5a4 100644 --- a/cloudflare-build.sh +++ b/cloudflare-build.sh @@ -1,6 +1,8 @@ #!/bin/bash -curl -L -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "browser_download_url.*extended.*linux-amd64.tar.gz" | cut -d : -f 2,3 | sed 's/"//g' | xargs wget +#curl -L -s https://api.github.com/repos/gohugoio/hugo/releases/0.119.0 | grep "browser_download_url.*extended.*linux-amd64.tar.gz" | cut -d : -f 2,3 | sed 's/"//g' | xargs wget + +wget https://github.com/gohugoio/hugo/releases/download/v0.119.0/hugo_0.119.0_Linux-64bit.tar.gz tar xvf ./*.tar.gz chmod u+x ./hugo diff --git a/netlify.toml b/netlify.toml index 9c9dd94..aacf142 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ [build.environment] - HUGO_VERSION = "0.120.1" + HUGO_VERSION = "0.119.0" [context.deploy-preview] command = "sed -i 's/! Content-Security-Policy//g' static/_headers && hugo -b $DEPLOY_PRIME_URL"