Skip to content

Instantly share code, notes, and snippets.

@InTEGr8or
Created March 31, 2018 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InTEGr8or/b889f2ee4ac5da463cdbca0265dd9914 to your computer and use it in GitHub Desktop.
Save InTEGr8or/b889f2ee4ac5da463cdbca0265dd9914 to your computer and use it in GitHub Desktop.
language: python
install:
- wget https://github.com/gohugoio/hugo/releases/download/v0.31.1/hugo_0.31.1_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
- pip install Pygments
script:
- hugo
after_success: |
git checkout master
git rm -rf .
mv docs/* .
rm -rf docs hugo_*
print("\nWriting CNAME\n")
f= open("docs/CNAME","w+")
f.write("phi-fi.com")
f.close()
print("\nAdding\n")
git add -f --ignore-errors --all
git -c user.name='travis' -c user.email='travis' commit -m init
print("\nPushing\n")
git push https://github.com/integr8or/phi-fi master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment