美文网首页
一键部署

一键部署

作者: 卢卢2020 | 来源:发表于2021-03-23 10:02 被阅读0次

新建文件  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://www.haomeiwen.com/subject/orxxhltx.html