2 Star 2 Fork 0

snowdreams1006 / snowdreams1006

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy.sh 316 Bytes
一键复制 编辑 原始数据 按行查看 历史
snowdreams1006 提交于 2024-02-18 22:40 . favicon-absolute
#!/bin/bash
# pull latest
git pull
# remove cache dir
rm -rf _book/
# generate docs
gitbook build
# copy to docs
cp -rf _book/* .
# push to server,only for myself
scp -r _book/* ali:~/nginx/html/blog
# add commits
git add .
# commit
git commit -m "auto deploy website"
# push to github and others
git push
1
https://gitee.com/snowdreams1006/snowdreams1006.git
git@gitee.com:snowdreams1006/snowdreams1006.git
snowdreams1006
snowdreams1006
snowdreams1006
master

搜索帮助