hexo 自动部署脚步

echo "===============start deploy==============="
hexo clean
hexo generate
cd public

git init
git add .
git commit -m "update "

git remote add origin https://github.com/xxx/xxx.github.io.git >>  /dev/null 2>&1
echo "### Pushing to Github..."
git push origin master -f
echo "### Done"
echo "===============end deploy================="

猜你喜欢

转载自hulefei29.iteye.com/blog/2287255