From b002cbbb2933662ebe529d14debb845a9d499d07 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Wed, 25 Nov 2026 15:06:02 -0700 Subject: [PATCH] Added revision generation (appends to .env). --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a06a06f..2d599a7 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,15 @@ -all: build deploy +revision := $(shell git rev-parse HEAD | head -c 8) +fullRevision := $(shell git rev-parse HEAD) + +all: env build deploy build: npm run force-build deploy: rsync -vaAExh --delete dist/ aries:/www/hosted/bashelton.com/public_html/sundays/ + +env: + echo "REVISION='$(revision)'" > .env + echo "FULL_REVISION='$(fullRevision)'" >> .env