Skip to content

Commit 8b78314

Browse files
fix(ci): use deploy-demo script (#189)
1 parent 37192e9 commit 8b78314

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
- yarn travis-deploy-once "yarn semantic-release"
3131
skip_cleanup: true
3232
after_deploy:
33-
- git push --force "https://${GH_TOKEN}@github.com/${GH_REPO}.git" $(git subtree split --prefix demo master):gh-pages
33+
- yarn deploy:demo

tools/deploy-demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ async function deployDemo() {
77
const gitCommands = [
88
'git add demo/',
99
'git commit -am "add demo"',
10-
`git push https://${GH_TOKEN}@${GH_REPO} $(git subtree split --prefix demo $(git rev-parse --abbrev-ref HEAD)):gh-pages --force`,
10+
`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`,
1111
'git reset --hard HEAD~1',
1212
]
1313

0 commit comments

Comments
 (0)