noway.moe/deploy.sh

10 lines
242 B
Bash
Raw Normal View History

2024-01-01 02:11:16 -07:00
#!/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