forked from leancloud/js-realtime-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·22 lines (22 loc) · 775 Bytes
/
deploy.sh
File metadata and controls
executable file
·22 lines (22 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
echo "Deploy demos to github pages.";
mkdir gh_pages;
cp -r demo gh_pages/;
cp -r dist gh_pages/;
cp -r test gh_pages/;
cp -r docs gh_pages/;
mkdir -p gh_pages/plugins/webrtc;
cp -r plugins/webrtc/dist gh_pages/plugins/webrtc/;
cp -r plugins/webrtc/docs gh_pages/plugins/webrtc/;
mkdir -p gh_pages/plugins/typed-messages;
cp -r plugins/typed-messages/dist gh_pages/plugins/typed-messages/;
cp -r plugins/typed-messages/docs gh_pages/plugins/typed-messages/;
cp -r bower_components gh_pages/;
cd gh_pages && git init;
git config user.name "leancloud-bot";
git config user.email "ci@leancloud.cn";
git add .;
git commit -m "Deploy demos to Github Pages [skip ci]";
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git master:gh-pages;
echo "done.";
cd ..