Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add gh-pages publishing to the project

Signed-off-by: Jordan Wilberding <jwilberding@gmail.com>
  • Loading branch information...
commit 4a93461ad940ce9ae1dce9726aa7948a01668b07 1 parent 5c1ecff
@ericbmerritt authored Jordan Wilberding committed
Showing with 9 additions and 0 deletions.
  1. +3 −0  Makefile
  2. +6 −0 do-gh-pages
View
3  Makefile
@@ -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
6 do-gh-pages
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.