Skip to content

Instantly share code, notes, and snippets.

@rmsubekti
Last active October 8, 2017 00:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rmsubekti/0c6102ec89a7bcedee8b43f771c90871 to your computer and use it in GitHub Desktop.
Save rmsubekti/0c6102ec89a7bcedee8b43f771c90871 to your computer and use it in GitHub Desktop.
Automatic deploy Jekyll Site to firebase hosting
language: node_js
node_js: '4.0'
before_install:
- rvm install 2.1
- rvm use 2.1
- . $HOME/.nvm/nvm.sh && nvm install 6.1 && nvm use 6.1
- gem install bundler
- bundle check || bundle install
install:
- npm install -g firebase-tools
before_script:
- chmod +x ./script/cibuild
script: ./script/cibuild
after_success:
- firebase deploy --token $FIREBASE_TOKEN
branches:
only:
- master
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
sudo: false # route your build to the container-based infrastructure for a faster
#!/usr/bin/env bash
set -e # halt script on error
bundle exec jekyll build
bundle exec htmlproofer ./_site
# script/cibuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment