Add deploy script

This commit is contained in:
Akemi Izuko 2024-01-01 02:11:16 -07:00
parent 6897cc5a7e
commit 7a5ca4c9c5
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

9
deploy.sh Normal file
View file

@ -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