1 #!/bin/sh
2 # Deploy the built site to Cloudflare Pages.
3 # One-time setup: npx wrangler login
4 set -e
5
6 OUT="$HOME/.cache/gitsite/out"
7 [ -d "$OUT" ] || { echo "no build output; run ./build.sh first" >&2; exit 1; }
8
9 npx wrangler pages deploy "$OUT" --project-name=git-lucas-co --branch=main --commit-dirty=true