Created
March 31, 2018 21:53
-
-
Save InTEGr8or/b889f2ee4ac5da463cdbca0265dd9914 to your computer and use it in GitHub Desktop.
This file contains 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
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