Skip to content

Add GitHub Actions deploy to Cloudflare Pages - #29

Merged
kylecesmat merged 2 commits into
masterfrom
cursor/gha-pages-cicd-10d6
Sep 1, 2026
Merged

Add GitHub Actions deploy to Cloudflare Pages#29
kylecesmat merged 2 commits into
masterfrom
cursor/gha-pages-cicd-10d6

Conversation

@kylecesmat

Copy link
Copy Markdown
Owner

Wires continuous deploy from GitHub Actions to the existing Cloudflare Pages project kylecesmat.

What this does

  • Adds .github/workflows/deploy.yml:
    • Runs on push to master and on pull requests
    • Checkout → Node from .nvmrc (22) → npm cinpm run checknpm run build
    • Deploys dist/ with cloudflare/wrangler-action@v4 (pages deploy dist --project-name=kylecesmat)
    • Production alias tracks master; PR pushes are preview only
  • Existing ci.yml is unchanged except comments: it still builds, checks, and uploads the dist artifact. Deploy lives in deploy.yml.
  • No custom domain, DNS, or apex cutover in this PR.

Secrets to add (required before Deploy will succeed)

Add these in Settings → Secrets and variables → Actions:

Name Value
CLOUDFLARE_API_TOKEN Token with Cloudflare Pages: Read / Edit (and Account: Read if prompted)
CLOUDFLARE_ACCOUNT_ID c6960b4773bc264f7166ecb8e274c87d

Until those exist, the Deploy job will fail at the wrangler step. CI will still pass.

GITHUB_TOKEN is provided by Actions; do not put API tokens or the account ID in the repo.

Out of scope

  • Custom domains / attaching kylecesmat.com
  • DNS / nameserver / orange-cloud changes
  • Merging this PR (left open for review)
Open in Web Open in Cursor 

Wire wrangler-action to the existing kylecesmat Pages project.
Production alias tracks master; PR pushes stay preview-only.

Co-authored-by: Kyle Cesmat <kylecesmat@gmail.com>
@kylecesmat
kylecesmat marked this pull request as ready for review September 1, 2026 20:18
Co-authored-by: Kyle Cesmat <kylecesmat@gmail.com>
@kylecesmat
kylecesmat merged commit 69141a4 into master Sep 1, 2026
2 of 3 checks passed
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.

2 participants