From 4c3f9301d3eb25112eb87f2bb694b052ca7bc919 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 24 Jul 2017 19:36:58 +0100 Subject: [PATCH] Checkout the target branch --- publish.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/publish.sh b/publish.sh index f7951b5c..b4263269 100755 --- a/publish.sh +++ b/publish.sh @@ -19,6 +19,7 @@ touch output_${SITE_ENV}/.nojekyll mv output_${SITE_ENV} docs # Add, commit and push the changes. +git checkout $TARGET_BRANCH git add --all docs git commit -m "Re-generate site. $SHA" git push $SSH_REPO $TARGET_BRANCH