新建文件? 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
最后在命令行運(yùn)行 sh deploy.sh? 即可自動更新
