Use SSH repo

This commit is contained in:
Oliver Davies 2017-07-24 17:16:20 +01:00
parent 3f07b30cb3
commit 250befd71e

View file

@ -2,6 +2,9 @@
SITE_ENV="prod"
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
# Build front-end assets.
npm run prod
@ -15,4 +18,4 @@ mv output_${SITE_ENV} docs
# Add, commit and push the changes.
git add --all docs
git commit -m 'Build.'
git push origin HEAD
git push $SSH_REPO HEAD