1 Star 0 Fork 552

lilei12138 / cs-wiki

forked from 小牛肉 / cs-wiki 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy.sh 572 Bytes
一键复制 编辑 原始数据 按行查看 历史
小牛肉 提交于 2022-06-21 01:02 . 更新
#!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 更新 master
git add -A
git commit -m "更新"
git push
# 更新 gh-pages
cd vuepress-doc
npm run build # 生成静态文件
cd docs/.vuepress/dist # 进入生成的文件夹
git init
# echo 'cswiki.top' > CNAME # 绑定域名
git add -A
git commit -m 'deploy'
# 发布到 Github Pages: https://<USERNAME>.github.io/<REPO>
# git push -f git@github.com:veal98/cs-wiki.git master:gh-pages
# 发布到 个人云服务器
git push -f git@124.221.132.200:/home/www/website/cswiki.git master
cd -
cd ../
Java
1
https://gitee.com/lilei12138/cs-wiki.git
git@gitee.com:lilei12138/cs-wiki.git
lilei12138
cs-wiki
cs-wiki
master

搜索帮助