git.lucas.co / website
source for lucas.co

commit41d1b13ba8b1b4e06b5455b8cf6aa772c5eb2730
parentd85ece4b5d
authorLucas Galante <[email protected]>
date2026-08-11 12:24
Add deploy script for Cloudflare Pages direct upload

Co-Authored-By: Claude Fable 5 <[email protected]>

 deploy.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..f8c6571
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Deploy lucas.co to Cloudflare Pages (direct upload, project "lucas-co").
+# Deploys the committed tree (HEAD), not the working directory.
+set -e
+
+BASE=$(dirname "$(readlink -f "$0")")
+STAGE=$(mktemp -d)
+trap 'rm -rf "$STAGE"' EXIT
+
+git -C "$BASE" archive HEAD | tar -x -C "$STAGE"
+npx wrangler pages deploy "$STAGE" --project-name=lucas-co --branch=main --commit-dirty=true