From 83e325aa6133e27a38afd9b30788da5fa7179eb0 Mon Sep 17 00:00:00 2001 From: Martin Sosic Date: Tue, 29 Oct 2019 15:57:27 +0100 Subject: [PATCH] Moved landing page deployment script to landing page directory. --- gh-deploy-lp.sh | 2 -- landing-page/deploy-master-to-gh-pages.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) delete mode 100755 gh-deploy-lp.sh create mode 100755 landing-page/deploy-master-to-gh-pages.sh 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