Merge pull request #40 from langyuxiansheng/dev_v1.2.8

增加gh-pages的脚本
This commit is contained in:
langyuxiansheng 2021-01-14 16:18:58 +08:00 committed by GitHub
commit 2d07b16f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
gh-page.sh Normal file
View File

@ -0,0 +1,23 @@
echo "打包 => dist";
npm run build;
echo "更新gh-pages";
git branch -D gh-pages;
echo "删除gh-pages";
git checkout -b gh-pages;
echo "创建并切换到gh-pages";
git add -f dist;
git commit -m 'create gh-pages';
git push origin -d gh-pages;
git subtree push --prefix dist origin gh-pages;
echo "已推送gh-pages";