Added revision generation (appends to .env).

This commit is contained in:
Benjamin A. Shelton 2026-11-25 15:06:02 -07:00
commit b002cbbb29
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01

View file

@ -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: build:
npm run force-build npm run force-build
deploy: deploy:
rsync -vaAExh --delete dist/ aries:/www/hosted/bashelton.com/public_html/sundays/ rsync -vaAExh --delete dist/ aries:/www/hosted/bashelton.com/public_html/sundays/
env:
echo "REVISION='$(revision)'" > .env
echo "FULL_REVISION='$(fullRevision)'" >> .env