Travis: Use hugo version 0.85.0, and not "latest" from GitHub API

GitHub only allows so many API calls per hour. If this is exceeded, the
travis ci build will fail.
This commit is contained in:
Mike Salvatore 2021-07-15 12:00:57 -04:00
parent ed2ebc79c3
commit 23c298a5f1
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ install:
- npm --version
# hugo (for documentation)
- curl --output - -L https://api.github.com/repos/gohugoio/hugo/releases/latest | grep --color=never "browser_download_url.*Linux-64bit.tar.gz" | grep -v extended | cut -d ':' -f2,3 | tr -d '"' | xargs -n 1 curl -L --output hugo.tar.gz
- curl -L https://github.com/gohugoio/hugo/releases/download/v0.85.0/hugo_0.85.0_Linux-64bit.tar.gz --output hugo.tar.gz
# print hugo version (useful for debugging documentation build errors)
- tar -zxf hugo.tar.gz
- ./hugo version