Skip to content

Commit 2bf509c

Browse files
committed
chore(build): auto deploy demos
1 parent e576dc6 commit 2bf509c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ echo "Deploy docs to github pages.";
33
npm run docs;
44
mkdir gh_pages;
55
cp -r docs gh_pages/;
6+
cp -r dist/av* gh_pages/;
7+
cp -r demo gh_pages/;
68
cd gh_pages && git init;
79
git config user.name "leancloud-bot";
810
git config user.email "[email protected]";
911
git add .;
10-
git commit -m "Deploy docs to Github Pages [skip ci]";
12+
git commit -m "Deploy docs and demos to Github Pages [skip ci]";
1113
git push -qf https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git master:gh-pages;
1214
echo "done.";
1315
cd ..

0 commit comments

Comments
 (0)