Sha256: fd50ee8800f7ac0148ba0acc7515f397a3fa5c373c220607fea28559677a1e72
Contents?: true
Size: 945 Bytes
Versions: 1
Compression:
Stored size: 945 Bytes
Contents
#!/usr/bin/env sh # Run this script to deploy the app to Github Pages. RED='\033[0;31m' # Exit if any subcommand fails. set -e # Check if any changes are uncommited. if ! git diff-files --quiet --ignore-submodules -- then echo >&2 "${RED}Please commit your changes first before deploying!" git diff-files --name-status -r --ignore-submodules -- >&2 exit 0 fi echo "Started deploying" # Checkout gh-pages branch. if [ `git branch | grep gh-pages` ] then git branch -D gh-pages fi git checkout -b gh-pages # Build site. bower install bundle exec jekyll build # Delete and move files. find . -maxdepth 1 ! -name '_site' ! -name '.git' ! -name '.gitignore' -exec rm -rf {} \; mv _site/* . rm -R _site/ # Push to gh-pages. git add -fA git commit --allow-empty -m "$(git log -1 --pretty=%B) [ci skip]" git push -f -q origin gh-pages # Move back to previous branch. git checkout - bower install echo "Deployed Successfully!" exit 0
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kickster-2.0.0 | template/bin/deploy |