From 3fed76def5a90cf96f255f7da7357160482fe8e9 Mon Sep 17 00:00:00 2001 From: Risto McGehee Date: Mon, 8 May 2023 21:28:01 -0700 Subject: [PATCH] Fix new-release target --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b5f0960..a8c2aa3 100644 --- a/Makefile +++ b/Makefile @@ -19,12 +19,12 @@ docker-build: new-release: @LATEST_RELEASE=$$(git tag | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$$' | sort -V | tail -n 1);\ NEW_RELEASE=$$(echo $$LATEST_RELEASE | awk -F. -v OFS=. '{$$3++;print}');\ - sed -i "s/const appVersion = \"v[0-9]*\.[0-9]*\.[0-9]*\"/const appVersion = \"$$NEW_RELEASE\"/g" main.go + sed -i "s/const appVersion = \"v[0-9]*\.[0-9]*\.[0-9]*\"/const appVersion = \"$$NEW_RELEASE\"/g" main.go;\ git add main.go;\ git commit -m "Bump version to $$NEW_RELEASE";\ git push;\ git tag $$NEW_RELEASE;\ - echo "Creating new release: $$NEW_RELEASE" + echo "Creating new release: $$NEW_RELEASE";\ git push --tags integration-tests: check-env docker-build