Deploy To Github Pages

Update _config.yml

1
2
3
4
deploy:
type: git
repo: git@github.com:xxx/xxx.github.io.git
branch: master

Deploy

1
2
3
npm install hexo-deployer-git --save
hexo generate
hexo deploy

And that’s all!

Better practice:
Make a branch for the blog source code, and let the deploy process update the master branch.