Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to v0.31.1 #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ heroku buildpacks:set BUILDPACK_URL="https://github.com/roperzh/heroku-buildpa
Optionally, define a `HUGO_VERSION` Config Var to specify the Hugo version you wish to use:

```bash
$ heroku config:set HUGO_VERSION=0.25
$ heroku config:set HUGO_VERSION=0.31.1
```

Then simply git push to heroku and open your application!
Expand Down
4 changes: 2 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CACHE_DIR=$2
ENV_DIR=$3

# Default Hugo version
DEFAULT_HUGO_VERSION="0.26"
DEFAULT_HUGO_VERSION="0.31.1"

# attempt to extract the HUGO_VERSION parameter form the Heroku configuration vars, fall back to the default version if unavailable
if [ -d "$ENV_DIR" -a -e "$ENV_DIR/HUGO_VERSION" ]; then
Expand All @@ -27,7 +27,7 @@ fi
# Hugo URL ( download from GH builds )
RELEASE_NAME=hugo_${HUGO_VERSION}_Linux-64bit
FILE_NAME=${RELEASE_NAME}.tar.gz
HUGO_PACKAGE=https://github.com/spf13/hugo/releases/download/v${HUGO_VERSION}/${FILE_NAME}
HUGO_PACKAGE=https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${FILE_NAME}

# Store the hugo package in the cache_dir ( persistent across builds )
mkdir -p $CACHE_DIR
Expand Down