Sha256: f46a10307aaea702c12f18e483055687f458770a8878e20e2d9e143c6da224cb

Contents?: true

Size: 688 Bytes

Versions: 9

Compression:

Stored size: 688 Bytes

Contents

#!/usr/bin/env sh

# Run this script to deploy the app to Github Pages.

# Exit if any subcommand fails.
set -e

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

9 entries across 9 versions & 1 rubygems

Version Path
kickster-1.5.0 template/bin/deploy
kickster-1.4.0 template/bin/deploy
kickster-1.3.0 template/bin/deploy
kickster-1.2.0 template/bin/deploy
kickster-1.1.4 template/bin/deploy
kickster-1.1.3 template/bin/deploy
kickster-1.1.2 template/bin/deploy
kickster-1.1.1 template/bin/deploy
kickster-1.1.0 template/bin/deploy