0 Star 1 Fork 0

uhfun / Uhfun-Jekyll

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy.sh 580 Bytes
一键复制 编辑 原始数据 按行查看 历史
fuhangbo 提交于 2020-06-05 15:41 . ..
echo '下载posts分支...'
rm -rf _posts || exit 0
git clone -b _posts https://github.com/uhfun/Uhfun-Jekyll.git _posts
echo '重建_site...'
rm -rf _site
git clone -b gh-pages https://github.com/uhfun/Uhfun-Jekyll.git _gh_site
rm -rf _gh_site/**/* || exit 0
echo '编译...'
bundle install && bundle exec jekyll build -d _gh_site
echo 'uhfun.cn > CNAME'
echo 'uhfun.cn' > CNAME
echo '提交_site...'
cd _gh_site
git config --global user.email 2512500628@qq.com
git config --global user.name fuhangbo
git add .
git commit -m '...'
git push
cd ..
rm -rf _gh_site
rm -rf _posts
HTML
1
https://gitee.com/uhfun/Uhfun-Jekyll.git
git@gitee.com:uhfun/Uhfun-Jekyll.git
uhfun
Uhfun-Jekyll
Uhfun-Jekyll
master

搜索帮助