I spun up a Today I Learned site based on Today Icelab Learned. But I wanted a simple set up where any push would auto deploy, and I didn’t have to run some other service to do that. So a bit of quick Travis hacking with the help of this article and Travis is now building the site and deploying to the gh-pages
branch.
The main additions are were adding NodeJS (as well as Ruby) and running bin/setup
during install
Adding NodeJS to our ruby build
It turns out Travis already include NodeJS and nvm. So getting the version we want is super simple:
Here’s the final .travis.yml
: