From 2b557a9c7b0eecf31bb6776889a25bc493240fa0 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Sun, 12 Apr 2020 18:01:03 -0400 Subject: [PATCH] Deploy to google cloud bucket --- .gitignore | 3 ++- Makefile | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index fc47aff..0fd5443 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ public/* -themes/*/.git \ No newline at end of file +themes/*/.git +.built \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eef64ea --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +build: content/.built + +all: build deploy + +content/.built: + zola build -o public/ + touch content/.built + +deploy: build + cd public + gsutil -m rsync -d -r public gs://jeremy.marzhillstudios.com/ + +clean: + rm -f content/.built + rm -rf generated/*