summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..1c40038
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+cp ~/Documents/diary assets/_
+. ./apikeys
+curl "https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/purge_cache" \
+ -H 'Content-Type: application/json' \
+ -H "Authorization: Bearer ${APIKEY}" \
+ -d '{ "purge_everything": true }'
+npx wrangler deploy