Skip to content

Add Cloudflare CI/CD scripts and update Wrangler configuration - #99

Merged
admdly merged 8 commits into
mainfrom
chore/gh-build-push
Oct 28, 2026
Merged

admdly merged 8 commits into
mainfrom
chore/gh-build-push

Conversation

@admdly

@admdly admdly commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary by cubic

Replaces the CI-only workflow with a CI/CD pipeline that validates, builds, and deploys the docs site to Cloudflare Workers, plus syncs preview PR comments.

  • Splits validation (format check, Astro checks) from the build job, runs a Wrangler --dry-run deploy check, and uploads the built artifact on push.
  • Deploys a Cloudflare preview with a PR comment on non-main branch pushes; pushes to main deploy to production using the root wrangler.jsonc.
  • Adds cf-deploy and cf-preview npm scripts backed by the new wrangler dev dependency, bumps the Worker compatibility_date to 2026-10-01, and enables observability issue reporting.
  • Adds a cloudflare-events.yml workflow to keep the preview PR comment in sync with workflow completions and PR events.
  • Adds concurrency groups that cancel in-progress runs except on main.

Written for commit beab345. Summary will update on new commits.

Turn on auto-fix

Add `cf-deploy` and `cf-preview` npm scripts wrapping Wrangler. Bump the Worker compatibility_date to 2026-10-01 and enable observability issues in wrangler.jsonc.
Replace ci.yml with a ci-cd.yml workflow that splits validation (format check, Astro checks) from the build, validates the Worker with a wrangler dry run, and uploads the build artifact on push.

Non-main branch pushes now deploy a Cloudflare preview with a PR comment, and pushes to main deploy to production, both via the shared FOSSBilling/.workflows reusable workflow.

Add cloudflare-events.yml to sync the preview PR comment on workflow completion and PR events.

Also add concurrency groups that cancel in-progress runs except on main.
@admdly admdly self-assigned this Oct 28, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-28T23:24:30.498759Z 9a98ebb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread .github/workflows/ci-cd.yml Outdated
Comment thread package.json
Comment thread .github/workflows/ci-cd.yml Outdated
Comment thread .github/workflows/cloudflare-events.yml
Comment thread package.json
admdly and others added 3 commits October 28, 2026 23:27
Include the Cloudflare Wrangler CLI for project development and deployment workflows.
Update CI validation and deployment to use the root `wrangler.json` instead of the config under `dist/server`.
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Deploying Preview to Cloudflare

No successful preview deployment recorded yet

Build and deployment attempts are listed below.

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) Details
Build: Success ✅
Deployment: Failed ❌
— 00b5ec6 2026-10-28T23:37:19.698Z View logs ↗
Build: Failed ❌
Deployment: Not run ⏭️
— e89d005 2026-10-28T23:34:27.123Z View logs ↗
Build: Failed ❌
Deployment: Not run ⏭️
— f9a2c0b 2026-10-28T23:32:29.190Z View logs ↗

admdly and others added 2 commits October 28, 2026 23:33
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Update validation and deployment workflow config paths to use `wrangler.jsonc`.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 4 files (changes from recent commits).

Requires human review: Adds Cloudflare CI/CD pipeline that deploys the docs site to Cloudflare Workers (production on main pushes), syncs PR preview comments, and updates Wrangler configuration. The deployment and operational changes require human sign-off.

Turn on auto-fix | Re-trigger cubic

Pin preview and production deployments to the updated reusable workflow revision.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 1 file (changes from recent commits).

Requires human review: Adds Cloudflare CI/CD with production deploys on main pushes, preview deploys/PR comment syncing, and Wrangler config/dependency updates. The deployment and operational tradeoffs, plus the dismissed previews-block claim, need human sign-off.

Turn on auto-fix | Re-trigger cubic

@admdly
admdly merged commit d5d3717 into main Oct 28, 2026
6 checks passed
@admdly
admdly deleted the chore/gh-build-push branch October 28, 2026 23:53
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