Skip to content

Commit

Permalink
Pin Hugo v0.119.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyTran732 authored Oct 31, 2023
1 parent 87adb43 commit d708140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cloudflare-build.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit d708140

Please sign in to comment.