Automatically Deploy Hexo With Travis CI

Automatically Deploy Hexo With Travis CI

Credit: unsplash-logoeleven x


Publishing a new post can be too much if you do it old school hexo p && hexo d on the desktop/laptop. What’s worse is you can only publish it on a computer with Hexo installed. What if you want to write it anywhere and anytime and even on an iPad? With Travis CI (or any other CI service), each time you push a change to the GitHub repo, a build will kick off on Travis and it run anything you prepared including deploying the updated pages. It took me two nights to figure out (mostly) how to archive it :sweat_smile:, so in this post I will try to write down each step and the tricks within to make everyone’s life easier.

This post is inspired by kchen’s

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×