Deploy to Github Pages with Wercker.
Put uetchy/gh-pages step into your wercker.yml.
Please make sure your wercker-box contains 'git' command.
box: golang:1.5.1
build:
steps:
- script:
name: initialize git submodules
code: |
git submodule update --init --recursive
- arjen/hugo-build:
theme: hugo-paper
flags: --buildDrafts=false
disable_pygments: true
deploy:
steps:
- uetchy/gh-pages:
token: $GITHUB_TOKEN
repo: randompaper/randompaper.github.io
domain: randompaper.co
path: public
box: wercker/default
build:
steps:
- arjen/hugo-build:
theme: hugo-paper
flags: --buildDrafts=false
disable_pygments: true
deploy:
steps:
- uetchy/gh-pages:
token: $GITHUB_TOKEN
repo: randompaper/randompaper.github.io
domain: randompaper.co
path: public
Then set your Github Personal Access Token as environment variables.
Finally, you will be able to deploy to Github Pages.
name | description | optional |
---|---|---|
token | Github token | false |
repo | Destination repository | true/false |
domain | Custom domain | true |
path | Root dir | true |