Last active
October 8, 2017 00:39
-
-
Save rmsubekti/0c6102ec89a7bcedee8b43f771c90871 to your computer and use it in GitHub Desktop.
Automatic deploy Jekyll Site to firebase hosting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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