nickpegg.com/Makefile

23 lines
385 B
Makefile

STAGING_SITE = test.nickpegg.com
all: clean build stage
stage: clean stage_build stage_publish
prod: clean build publish
clean:
rm -rf build
build:
posty build
publish:
rsync -auvP build/ deploy.nickpegg.com:web
stage_build:
posty build -c config.staging.yml
stage_publish:
gsutil -m -h "Cache-Control:max-age=30, no-transform" rsync -c -d -r build/ gs://$(STAGING_SITE)