Skip to content

Instantly share code, notes, and snippets.

@InTEGr8or
Created April 22, 2018 20:54
Show Gist options
  • Save InTEGr8or/018b118a47ef8a97d45ff9387814d4b8 to your computer and use it in GitHub Desktop.
Save InTEGr8or/018b118a47ef8a97d45ff9387814d4b8 to your computer and use it in GitHub Desktop.
# language: python
install:
- wget https://github.com/gohugoio/hugo/releases/download/v0.39/hugo_0.39_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
# - pip install Pygments
script:
- git checkout master
- rm -rf docs
- hugo
- rm -r hugo_0*.deb
- baseURL=$(cat config.toml | grep baseURL | awk '{print $3}' | tr -d \")
- echo $baseURL
- printf $baseURL > docs/CNAME
after_success:
- git add --force docs/
- git -c user.name='travis' -c user.email='travis' commit -m "travis build `date`"
- githubURL=$(cat config.toml | grep githubURL | awk '{print $3}'
- ${githubURL/https:*g/https://$GH_TOKEN@g}
- git push ${githubURL/https:*g/https://$GH_TOKEN@g} master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment