Skip to content

Instantly share code, notes, and snippets.

@voigt
Created October 23, 2016 20:45
Show Gist options
  • Save voigt/56ed4582db245cc03ce4c22258f7cf66 to your computer and use it in GitHub Desktop.
Save voigt/56ed4582db245cc03ce4c22258f7cf66 to your computer and use it in GitHub Desktop.
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
- GIT_DEPLOY_EMAIL=user@example.com # 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