1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

fix(docs): decploy scripts in travis needs to be single command

This commit is contained in:
ivaosthu 2018-11-21 17:39:03 +01:00 committed by Ivar Conradi Østhus
parent 49e6faf925
commit 70b9a65244
2 changed files with 7 additions and 5 deletions

View File

@ -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

6
scripts/deploy-docs.sh Executable file
View File

@ -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