From 7a5ca4c9c5199fea8a1e4bc6b514d8216b076eee Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Mon, 1 Jan 2024 02:11:16 -0700 Subject: [PATCH] Add deploy script --- deploy.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..007b111 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +# Uploads the website to Cloudflare Pages + +if ! npm run build; then + echo "BUILD FAILED: Not uploading website" +else + export CLOUDFLARE_ACCOUNT_ID="$(pass show cloudflare/account_id)" + npx wrangler pages deploy dist +fi