Skip to content

Commit

Permalink
fix(ci): use deploy-demo script (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell authored Apr 11, 2019
1 parent 37192e9 commit 8b78314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
- yarn travis-deploy-once "yarn semantic-release"
skip_cleanup: true
after_deploy:
- git push --force "https://${GH_TOKEN}@github.com/${GH_REPO}.git" $(git subtree split --prefix demo master):gh-pages
- yarn deploy:demo
2 changes: 1 addition & 1 deletion tools/deploy-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function deployDemo() {
const gitCommands = [
'git add demo/',
'git commit -am "add demo"',
`git push https://${GH_TOKEN}@${GH_REPO} $(git subtree split --prefix demo $(git rev-parse --abbrev-ref HEAD)):gh-pages --force`,
`git push https://${GH_TOKEN}@github.com/${GH_REPO}.git $(git subtree split --prefix demo $(git rev-parse --abbrev-ref HEAD)):gh-pages --force > /dev/null 2>&1`,
'git reset --hard HEAD~1',
]

Expand Down

0 comments on commit 8b78314

Please sign in to comment.