From 36ef455e69d951503ee483ff643a36085ef3cbf0 Mon Sep 17 00:00:00 2001 From: Pat Cavit Date: Fri, 24 Mar 2017 16:10:46 -0700 Subject: [PATCH] chore: integrating .travis.yml fixes from master --- .travis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 23038278..75e9b45c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,12 +45,20 @@ after_success: [ "$TRAVIS_REPO_SLUG" == "lhorie/mithril.js" ] then # Generate docs - $(npm-bin) run gendocs + npm run gendocs + # Set up git env + git config --global user.email "$GH_USER_EMAIL" + git config --global user.name "$GH_USER_NAME" + # Commit docs to gh-pages branch # Using --add to ensure that archived versions aren't lost # Using --repo to force it to go over SSH so the saved keys are used (tschaub/gh-pages#160) - $(npm bin)/gh-pages --dist ./dist --add --repo "git@github.com:lhorie/mithril.js.git" + $(npm bin)/gh-pages \ + --dist ./dist \ + --add \ + --repo "git@github.com:lhorie/mithril.js.git" \ + --message "Generated docs for commit $TRAVIS_COMMIT [skip ci]" else echo "Not submitting documentation updates" fi