From ca7fb1b0ad5b65acf86e996221185a2cd23d737d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 24 Jul 2017 18:07:24 +0100 Subject: [PATCH] Include previous SHA in commit message. Fixes #34 --- publish.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index cfc93c0e..30994222 100755 --- a/publish.sh +++ b/publish.sh @@ -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