diff --git a/gh-deploy-lp.sh b/gh-deploy-lp.sh deleted file mode 100755 index 48bbd5167..000000000 --- a/gh-deploy-lp.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -git push origin `git subtree split --prefix landing-page master`:gh-pages --force diff --git a/landing-page/deploy-master-to-gh-pages.sh b/landing-page/deploy-master-to-gh-pages.sh new file mode 100755 index 000000000..7581c4e34 --- /dev/null +++ b/landing-page/deploy-master-to-gh-pages.sh @@ -0,0 +1,8 @@ +#!/bin/sh +GIT_ROOT=`git rev-parse --show-toplevel` +DIR_TO_DEPLOY=`pwd` +DIR_TO_DEPLOY_REL_TO_GIT_ROOT="${DIR_TO_DEPLOY#"$GIT_ROOT"/}" +cd $GIT_ROOT +SUBTREE_MASTER_REF=`git subtree split --prefix "$DIR_TO_DEPLOY_REL_TO_GIT_ROOT" master` +echo "$SUBTREE_MASTER_REF" +git push origin "$SUBTREE_MASTER_REF":gh-pages --force