-
-
Save silentworks/92b565ac4f045c1076607d56cde180a4 to your computer and use it in GitHub Desktop.
Hugo with nanobox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run.config: | |
engine: static | |
cache_dirs: | |
- .bin | |
extra_path_dirs: | |
- /app/.bin | |
extra_steps: | |
# fetch hugo binary if it doesn't exist | |
- | | |
if [[ ! -f .bin/hugo ]]; then | |
cd /tmp | |
wget https://github.com/spf13/hugo/releases/download/v0.18/hugo_0.18_Linux-64bit.tar.gz | |
tar -xzf hugo_0.18_Linux-64bit.tar.gz | |
mv /tmp/hugo_0.18_linux_amd64/hugo_0.18_linux_amd64 /app/.bin/hugo | |
cd - >/dev/null | |
fi | |
deploy.config: | |
extra_steps: | |
# generate the site | |
- hugo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment