Created
October 23, 2016 20:45
-
-
Save voigt/56ed4582db245cc03ce4c22258f7cf66 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
env: | |
global: | |
- secure: "..." # replace this with the travis encryption output! | |
- GIT_DEPLOY_DIR=public # default output dir of Hugo (change it, when you use configured it!) | |
- GIT_DEPLOY_BRANCH=master # target branch, replace by "gh-pages" for Github Project Pages | |
- GIT_DEPLOY_USERNAME="Travis CI" # dummy name | |
- [email protected] # replace by your email | |
branches: | |
only: | |
- sources # for Github Project Pages replace with "master" | |
install: | |
- rm -rf public || exit 0 # cleanup previous run | |
script: | |
- binaries/hugo # Generate | |
after_success: | |
- cp .travis.yml public # all branches need this file | |
- bash deploy.sh # run the deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment