blog

Source files for chris.bracken.jp
git clone https://git.bracken.jp/blog.git
Log | Files | Refs | Submodules | README | LICENSE

commit a463a571571adeff77a5e209f52ce8058d6f8ab0
parent 320df4639e1d9149b0e79a7b6fc91535459f08cc
Author: Chris Bracken <chris@bracken.jp>
Date:   Sun, 30 Dec 2018 14:52:39 -0800

Add Travis deployment script

Diffstat:
A.travis.yml | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -0,0 +1,26 @@ +language: go + +# use the latest version of go. +go: + - master + +# Fetch the latest version of Hugo. +install: + - go get github.com/spf13/hugo + +# Build the website. +script: + - hugo + +deploy: + local_dir: public # static site output dir for Hugo. + repo: cbracken/cbracken.github.io # repo to deploy to. + target_branch: master # deploy to master branch. + provider: pages # GitHub Pages + skip_cleanup: true + keep_history: true + github_token: $GITHUB_TOKEN + email: chris@bracken.jp + name: "Chris Bracken" + on: + branch: master