新建文件 deploy.sh
在里面写上命令
rm -rf dist &&
yarn build &&
cd dist &&
git init &&
git add . &&
git commit -m 'update' &&
git branch -M main &&git remote add origin git@github.com:lushengqin/lulu-UI.git &&
git push -f -u origin main &&
cd -
echo https://lushengqin.github.io/lulu-UI/index.html
最后在命令行运行 sh deploy.sh 即可自动更新
![](https://img.haomeiwen.com/i22929956/b404293bca58d545.png)
网友评论