Permalink
Browse files

Adding deploy script.

  • Loading branch information...
1 parent 162eb7f commit a802c665ed5334aecd07194b909aab4bba3469da @stephank committed Dec 18, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 deploy.sh
View
15 deploy.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -x -e
+
+currentHead=`git symbolic-ref HEAD`
+
+git checkout -B gh-pages
+cake -c build
+sed -i '' -e '/game\.js/d' .gitignore
+git add .gitignore game.js
+git commit -m "Built for deployment"
+
+git checkout $currentHead
+
+git push origin gh-pages

0 comments on commit a802c66

Please sign in to comment.