From 46e6f4b71f052de50f3be1db76fcdc9dfb25ab38 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Wed, 10 Feb 2021 08:30:32 +0100 Subject: :bookmark: Add version to last commit --- deploy.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'deploy.sh') diff --git a/deploy.sh b/deploy.sh index 40a8154..2aa723e 100755 --- a/deploy.sh +++ b/deploy.sh @@ -23,7 +23,10 @@ VERSION=$(cat package.json \ | awk -F: '{ print $2 }' \ | sed 's/[",]//g' \ | tr -d '[[:space:]]') + echo "Deploying for tag: $VERSION." +git add package.json package-lock.json +git commit --amend --no-edit tput setaf 4 echo "> Build app" @@ -55,6 +58,6 @@ git checkout controller git tag "v$VERSION" -#git push --follow-tags origin controller +git push -f origin controller git push origin "v$VERSION" git push origin gh-pages -- cgit v1.2.3