Permalink
Browse files

add gh-pages publishing to the project

Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
  • Loading branch information...
1 parent 5c1ecff commit 4a93461ad940ce9ae1dce9726aa7948a01668b07 @ericbmerritt committed with jwilberding-sfdc Sep 22, 2011
Showing with 9 additions and 0 deletions.
  1. +3 −0 Makefile
  2. +6 −0 do-gh-pages
View
@@ -56,6 +56,9 @@ smoketests: main
testall : cucumber test smoketests
+gh-pages:
+ ./do-gh-pages
+
clean:
rm -rf _build ;
rm -rf erl_crush.dump
View
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+PARENT_SHA=$(git show-ref -s refs/heads/gh-pages)
+DOC_SHA=$(git ls-tree -d HEAD doc | awk '{print $3}')
+NEW_COMMIT=$(echo "Auto-update docs." | git commit-tree $DOC_SHA -p $PARENT_SHA)
+git update-ref refs/heads/gh-pages $NEW_COMMIT

0 comments on commit 4a93461

Please sign in to comment.