Checkout the target branch

This commit is contained in:
Oliver Davies 2017-07-24 19:36:58 +01:00
parent 6d9e50f13e
commit 4c3f9301d3

View file

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