-
-
Save lukas-h/b13f64c2bf0988c3467e2a736f8bfd5e to your computer and use it in GitHub Desktop.
Automatic deploy Jekyll Site to firebase hosting
This file contains hidden or 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: '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 |
This file contains hidden or 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 --profile | |
# script/cibuild |
This file contains hidden or 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
{ | |
"hosting": { | |
"public": "_site" | |
} | |
} |
This file contains hidden or 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
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