Skip to content

Instantly share code, notes, and snippets.

@lukas-h
Forked from rmsubekti/.travis.yml
Last active October 12, 2017 23:02
Show Gist options
  • Save lukas-h/b13f64c2bf0988c3467e2a736f8bfd5e to your computer and use it in GitHub Desktop.
Save lukas-h/b13f64c2bf0988c3467e2a736f8bfd5e to your computer and use it in GitHub Desktop.
Automatic deploy Jekyll Site to firebase hosting
language: node_js
node_js: '8'
notifications:
email: false
before_install:
- rvm install 2.4
- rvm use 2.
- gem install bundler
- 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
sudo: false
#!/usr/bin/env bash
set -e # halt script on error
bundle exec jekyll build --profile
# script/cibuild
{
"hosting": {
"public": "_site"
}
}
source 'https://rubygems.org'
group :jekyll_plugins do
gem 'jekyll'
gem 'jekyll-sass-converter'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment