Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Deploying to github pages via Travis #940

darvin opened this Issue · 6 comments

4 participants


I'm using this workflow:

Basically, I added this .travis.yml to root of by blog and used this method for travis encoding of my ssh github key (for pushing to github pages). No octopress modifications necessary. This method allows user to edit source code of blog (add post, edit post, edit settings, config, wharever) just via browser (like in or just in Github web editor.

Maybe it nice feature to have in octopress out of box? like in rake setup_github_pages or something?


This is exactly the sort of thing I'd like to be doing in Octopress. Thanks for your work on this. I'll look into it.


the thing is - github now supports jekyll sites natively. Octopress is framework on top of jekyll. Is there any possibility to pack whole Octopress business and plugins to be compatibly with plain jekyll? This way we could deploy stuff just by storing it on github.


@darvin GitHub won't allow plugins or other external code to be run. Octopress ads a lot to Jekyll that Github just won't do.


This is incredible! Thank you for this contribution!


@darvin : I was thinking about trying to do something like this with Travis-CI only this morning.

Also, if the commit message has [ci skip] in it somewhere, Travis skips building that commit as mentioned here. Maybe that's something that could be done to the commit message within rake deploy.

Anyways, awesome stuff! Thank you...


I implemented this successfully with a couple of tweaks to @darvin's process above. The gist is:

  • reverted _config.yml in the before_script after rake setup_github_pages (necessary for blogs published to a custom domain)
  • Rakefile edited to append [ci skip] to the commit message (to skip second ci-build)
  • modified the script to generate the travis-encrypted secure key, to match the current version's travis encrypt syntax

The details have been posted on my blog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.