1 #!/bin/sh 2 # Deploy lucas.co to Cloudflare Pages (direct upload, project "lucas-co"). 3 # Deploys the committed tree (HEAD), not the working directory. 4 set -e 5 6 BASE=$(dirname "$(readlink -f "$0")") 7 STAGE=$(mktemp -d) 8 trap 'rm -rf "$STAGE"' EXIT 9 10 git -C "$BASE" archive HEAD | tar -x -C "$STAGE" 11 npx wrangler pages deploy "$STAGE" --project-name=lucas-co --branch=main --commit-dirty=true