diff --git a/.travis.yml b/.travis.yml index dcdf1b6eebc..4340bf58b44 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 00000000000..1074d84f087 --- /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