step-gh-pages
step-gh-pages copied to clipboard
deploy github pages with wercker
Github Pages Deploy
A wercker step to deploy to Github Pages.
Options
tokenGithub API access token (documentation). don't share this on a public repo, use an environment variable!basediroptional Set this if your build step outputs to a folder. E.g. hugo outputs topublic/branchoptional Set this if you want to deploy to a different branch for testing/staging purposes. By default it will usegh-pages(if a project), ormaster(if a user/organisation).domainoptional Set this to use a custom domain (documentation)repooptional Set this to a github repo like "user/repo". Defaults to your build repo
Example
Check out lvivier/luke.vivier.ca on GitHub.
deploy:
steps:
- gh-pages:
token: $GIT_TOKEN
domain: luke.vivier.ca
basedir: public