Add GitHub Actions deploy to Cloudflare Pages - #29
Merged
Conversation
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
marked this pull request as ready for review
September 1, 2026 20:18
Co-authored-by: Kyle Cesmat <kylecesmat@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wires continuous deploy from GitHub Actions to the existing Cloudflare Pages project
kylecesmat.What this does
.github/workflows/deploy.yml:masterand on pull requests.nvmrc(22) →npm ci→npm run check→npm run builddist/withcloudflare/wrangler-action@v4(pages deploy dist --project-name=kylecesmat)master; PR pushes are preview onlyci.ymlis unchanged except comments: it still builds, checks, and uploads thedistartifact. Deploy lives indeploy.yml.Secrets to add (required before Deploy will succeed)
Add these in Settings → Secrets and variables → Actions:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_IDc6960b4773bc264f7166ecb8e274c87dUntil those exist, the Deploy job will fail at the wrangler step. CI will still pass.
GITHUB_TOKENis provided by Actions; do not put API tokens or the account ID in the repo.Out of scope
kylecesmat.com