From a421691d83da2b76b2f879d24fbf26c6554a41b6 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 26 May 2020 18:06:00 -0400 Subject: [PATCH] make: Move version.txt generation from build->release Some commits, like this one, may not actually trigger a build. However, they could mess up the deployment (i.e. I botched the rsync line), so version.txt should still be updated accordingly! --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 44810fc..729bfb2 100644 --- a/Makefile +++ b/Makefile @@ -28,11 +28,11 @@ build: .public.ts $(LIB_FILES) gloat.pl rm -rf build mkdir -p build cp -a gloat.pl public lib build - git show HEAD --pretty=full -s | sed 's/\(Author\|Commit\): \([^<]\+\).*/\1: \2/' > build/public/version.txt @echo ">>> Build Success! <<<" .PHONY: release release: build test + git show HEAD --pretty=full -s | sed 's/\(Author\|Commit\): \([^<]\+\).*/\1: \2/' > build/public/version.txt rsync -av --delete build/ www@euchre.live:/var/www/preprod-el/ ssh www@euchre.live env FORCE=$(FORCE) sh /var/www/restart.sh preprod -- libgit2 1.1.1