Add Travis CI config for automatic deployment of Hugo site

This commit is contained in:
foo-dogsquared 2019-08-14 16:56:08 +08:00
parent 20181ff38f
commit bca8e26d1d

18
.travis.yml Normal file
View File

@ -0,0 +1,18 @@
dist: xenial
# installing Hugo from the snap store'
# https://snapcraft.io/hugo
addons:
snaps:
- hugo
script:
- hugo
deploy:
local_dir: "public/"
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
target_branch: gh-pages
keep_history: true
on:
branch: master