Skip to content

Commit

Permalink
Merge pull request #40 from langyuxiansheng/dev_v1.2.8
Browse files Browse the repository at this point in the history
增加gh-pages的脚本
  • Loading branch information
langyuxiansheng authored Jan 14, 2021
2 parents 964f6b8 + f3b97d3 commit 2d07b16
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions gh-page.sh
Original file line number Diff line number Diff line change
@@ -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";

0 comments on commit 2d07b16

Please sign in to comment.