21 lines
564 B
Makefile
21 lines
564 B
Makefile
|
|
revision := $(shell git rev-parse HEAD | head -c 8)
|
|
fullRevision := $(shell git rev-parse HEAD)
|
|
revcount := $(shell git rev-list --count HEAD)
|
|
|
|
all: env build deploy
|
|
|
|
build:
|
|
npm run build
|
|
|
|
force-build:
|
|
npm run force-build
|
|
|
|
deploy:
|
|
#rsync -vaAExh --delete dist/ aries:/www/hosted/bashelton.com/public_html/sundays/
|
|
rsync -e "ssh -i .ssh/deploy_ecdsa" -vaAExh --delete dist/ justus@aries:/www/hosted/itsjustus.faith/public_html/
|
|
|
|
env:
|
|
echo "REVISION='$(revision)'" > .env
|
|
echo "FULL_REVISION='$(fullRevision)'" >> .env
|
|
echo "REV_COUNT='$(revcount)'" >> .env
|