Added revision generation (appends to .env).
This commit is contained in:
parent
024c946998
commit
b002cbbb29
1 changed files with 8 additions and 1 deletions
9
Makefile
9
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue