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