Skip to content

Commit

Permalink
fix(docs): decploy scripts in travis needs to be single command
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaosthu authored and ivarconr committed Feb 20, 2020
1 parent 49e6faf commit 70b9a65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Expand Up @@ -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 changes: 6 additions & 0 deletions 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

0 comments on commit 70b9a65

Please sign in to comment.