From bca8e26d1d11c2edf30a47ec7e65155c8b07d209 Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Wed, 14 Aug 2019 16:56:08 +0800 Subject: [PATCH] Add Travis CI config for automatic deployment of Hugo site --- .travis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..bfbe215 --- /dev/null +++ b/.travis.yml @@ -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