Skip to content

Automate Cloudflare Pages deployment - #27

Merged
jadercorrea merged 1 commit into
mainfrom
ci/cloudflare-pages-deploy
Aug 21, 2026
Merged

Automate Cloudflare Pages deployment#27
jadercorrea merged 1 commit into
mainfrom
ci/cloudflare-pages-deploy

Conversation

@jadercorrea

Copy link
Copy Markdown
Owner

Summary

  • deploy the validated Jekyll build to the authoritative Cloudflare Pages project on merges to main
  • use repository secrets for the scoped Cloudflare API token and account ID
  • pin the official Wrangler action and Wrangler version
  • keep the existing GitHub Pages deployment as a fallback
  • add a regression test for the deployment contract and record the completed roadmap item

Validation

  • make verify
  • ruby test/site_identity_test.rb (18 runs, 253 assertions)
  • JEKYLL_ENV=production bundle exec jekyll build
  • workflow YAML parse
  • git diff --check

Security

  • no credential values are stored in the repository
  • the optional GitHub token integration and deployments:write permission are intentionally omitted

Merges to main built GitHub Pages but left the authoritative Cloudflare Pages project unchanged, so new posts required a manual upload before appearing on gptcode.dev.

Add a pinned Wrangler action to the existing validated Jekyll workflow, keep credentials in GitHub Secrets, and enforce the deployment contract with a site identity test.

A future migration to Cloudflare Git integration could remove the API token, but direct-upload projects require this explicit CI deployment today.
@jadercorrea
jadercorrea merged commit a541fa7 into main Aug 21, 2026
1 check 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.

1 participant