From f1e7b2f731ec973083d342e769b32113db6eeab7 Mon Sep 17 00:00:00 2001 From: Tan Zhen Yong Date: Mon, 18 Feb 2019 01:19:11 +0800 Subject: [PATCH] Deploy user docs via Travis on release --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 28d46ec5ca..a01de71360 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,13 @@ node_js: - '8' before_install: - chmod +x ./test/functional/test.sh +deploy: + provider: script + script: cd docs && ../index.js build && ../index.js deploy --travis + skip_cleanup: true + on: + tags: true + condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+ cache: directories: - node_modules