Include previous SHA in commit message.

Fixes #34
This commit is contained in:
Oliver Davies 2017-07-24 18:07:24 +01:00
parent 1bac2ababb
commit ca7fb1b0ad

View file

@ -4,6 +4,7 @@ SITE_ENV="prod"
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
SHA=`git rev-parse --verify HEAD`
# Build front-end assets.
npm run prod
@ -17,5 +18,5 @@ mv output_${SITE_ENV} docs
# Add, commit and push the changes.
git add --all docs
git commit -m 'Build.'
git commit -m "Re-generate site. $SHA"
git push $SSH_REPO master