Sha256: c4b802cced6b52994755331e85b1ca6a50d09c2c263672468887db5957f8756c
Contents?: true
Size: 805 Bytes
Versions: 10
Compression:
Stored size: 805 Bytes
Contents
#!/bin/bash # Automated deploy script with Circle CI. # Exit if any subcommand fails. set -e # Variables ORIGIN_URL=`git config --get remote.origin.url` 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 config user.name "$USER_NAME" git config user.email "$USER_EMAIL" git add -fA git commit --allow-empty -m "$(git log -1 --pretty=%B) [ci skip]" git push -f $ORIGIN_URL gh-pages # Move back to previous branch. git checkout - bower install echo "Deployed Successfully!" exit 0
Version data entries
10 entries across 10 versions & 1 rubygems