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