Skip to content

uetchy/wercker-step-gh-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wercker-step-gh-pages

Deploy to Github Pages with Wercker.

Usage

Put uetchy/gh-pages step into your wercker.yml.

Please make sure your wercker-box contains 'git' command.

Example(Docker stack)

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

Example(Classic stack)

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.

Deployment variables

Finally, you will be able to deploy to Github Pages.

Options

name description optional
token Github token false
repo Destination repository true/false
domain Custom domain true
path Root dir true

About

Deploy to Github Pages via Wercker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages