Sha256: 040225fa9b70423eb7591ab730617bacfabb5e637e9cf58683004ede57d41616

Contents?: true

Size: 756 Bytes

Versions: 3

Compression:

Stored size: 756 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

# Generate site.
bower install
bundle exec jekyll build --destination temp

# Port everyting needed inside temp folder.
mkdir tmp
find . -maxdepth 1 ! -name 'temp' ! -name '.git' ! -name '.gitignore' -exec rm -rf {} \;

# Move site to root and cleanup files.
mv temp/* .
rm -R temp/

# Push to gh-pages
git add -fA
git commit --allow-empty -m "$(git log -1 --pretty=%B)"
git push -f -q origin gh-pages

# Move back to previous branch
git checkout -
bower install

echo "Deployed Successfully!"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kickster-1.0.4 template/bin/deploy
kickster-1.0.3 template/bin/deploy
kickster-1.0.2 template/bin/deploy