Moved landing page deployment script to landing page directory.

This commit is contained in:
Martin Sosic 2019-10-29 15:57:27 +01:00
parent eea735ad0a
commit 83e325aa61
2 changed files with 8 additions and 2 deletions

View File

@ -1,2 +0,0 @@
#!/bin/sh
git push origin `git subtree split --prefix landing-page master`:gh-pages --force

View File

@ -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