Skip to content

ci: auto-deploy to Cloudflare on push to main#1

Open
rockitdev wants to merge 1 commit into
mainfrom
ci/cloudflare-auto-deploy
Open

ci: auto-deploy to Cloudflare on push to main#1
rockitdev wants to merge 1 commit into
mainfrom
ci/cloudflare-auto-deploy

Conversation

@rockitdev

Copy link
Copy Markdown
Owner

Wires auto-deploy so pushes to main ship automatically. Fixes the stale-deploy gap where July changes were pushed to main but never went live (nothing deployed on push).

What it does: on every push to main (and manual workflow_dispatch), builds the Astro site and runs wrangler deploy of the ./dist Workers static assets.

Before merging — add two repo secrets (Settings → Secrets and variables → Actions):

  • CLOUDFLARE_API_TOKEN — create at Cloudflare → My Profile → API Tokens → use the "Edit Cloudflare Workers" template.
  • CLOUDFLARE_ACCOUNT_ID — from the Cloudflare dashboard (Workers & Pages → account ID in the right sidebar, or the hex in the dashboard URL).

Merging this PR triggers the first run, which deploys current main (all the July changes: The Lab, grade-7 copy, case-study depth) and fixes the live site in one shot.

🤖 Generated with Claude Code

Adds a GitHub Actions workflow that builds the Astro site and deploys
the ./dist Workers static assets via wrangler on every push to main.
Fixes the stale-deploy gap: changes were pushed but never shipped
because nothing deployed on push. Requires repo secrets
CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant