Skip to content

Commit

Permalink
Travis: Use hugo version 0.85.0, and not "latest" from GitHub API
Browse files Browse the repository at this point in the history
GitHub only allows so many API calls per hour. If this is exceeded, the
travis ci build will fail.
  • Loading branch information
mssalvatore committed Jul 15, 2021
1 parent ed2ebc7 commit 23c298a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23c298a

Please sign in to comment.