From 70b9a65244407ddb2f8d1a22b6d82f8648ea90bd Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Wed, 21 Nov 2018 17:39:03 +0100 Subject: [PATCH] fix(docs): decploy scripts in travis needs to be single command --- .travis.yml | 6 +----- scripts/deploy-docs.sh | 6 ++++++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100755 scripts/deploy-docs.sh diff --git a/.travis.yml b/.travis.yml index dcdf1b6eeb..4340bf58b4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,10 +26,6 @@ cache: deploy: # deploy doc on master to production - provider: script - script: - - git config --global user.name "${GH_NAME}" - - git config --global user.email "${GH_EMAIL}" - - echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc - - cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages + script: bash scripts/deploy-docs.sh on: branch: master \ No newline at end of file diff --git a/scripts/deploy-docs.sh b/scripts/deploy-docs.sh new file mode 100755 index 0000000000..1074d84f08 --- /dev/null +++ b/scripts/deploy-docs.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +git config --global user.name "${GH_NAME}" +git config --global user.email "${GH_EMAIL}" +echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc +cd website && npm install && GIT_USER="${GH_NAME}" npm run publish-gh-pages \ No newline at end of file