2017-04-14 15:55:08 +08:00
|
|
|
language: go
|
|
|
|
install:
|
|
|
|
- export HUGO_VERSION=0.20
|
|
|
|
- export HUGO_PACKAGE=hugo_${HUGO_VERSION}_Linux-64bit
|
|
|
|
- curl -L https://github.com/spf13/hugo/releases/download/v$HUGO_VERSION/$HUGO_PACKAGE.tar.gz | tar xz
|
|
|
|
- mkdir $HOME/bin
|
|
|
|
- mv ./hugo_${HUGO_VERSION}_linux_amd64/hugo_${HUGO_VERSION}_linux_amd64 $HOME/bin/hugo
|
|
|
|
script:
|
|
|
|
- rm -rf docs
|
2017-04-15 02:43:28 +08:00
|
|
|
- cd DOCUMENTATION
|
2017-04-14 15:55:08 +08:00
|
|
|
- hugo
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: pages
|
|
|
|
skip_cleanup: true
|
2017-04-15 02:43:28 +08:00
|
|
|
local_dir: ../docs
|
2017-04-14 15:55:08 +08:00
|
|
|
github_token: $GITHUB_TOKEN
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
email: false
|