Using Travis CI, I tried deploying this hexo site to firebase hosting.

It includes 1Gb of storage and 10 Gb of data transfer monthly. So it would be a huge increase compared to OVH Start1m plan (also free).

It also supports Custom domain (So I could host this site or a subdomain on Firebase) & free SSL certificates.

I used the doc on travis to do that:

Then I tried to generate encryption keys using travis command line:

Unfortunately, it failed:

$ travis
-bash: /usr/local/bin/travis: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory

From what I read here and there, it’s an issue with the last MacOS update (High Sierra).

Here is the fix:

sudo gem install -n /usr/local/bin travis

Once this is fixed, it is possible to generate your encryption key:

travis encrypt "xyz<my ci key>wxy" --add deploy.token

Note that this will produce a warning that you can ignore.

Here is the full .travis.yml file:

language: node_js
- node
depth: 2
- master
- npm install -g hexo-cli
- npm install
- hexo generate
- cp firebase/robots.txt public/robots.txt
skip_cleanup: true
provider: firebase
secure: tEG0...V9g=

The current version is stored here:

And the result can be seen here: (I added a specific robots.txt to disallow search engine indexing)

Travis build logs are available here: