Skip to content

ci: move docs deployment and PR previews to Cloudflare Pages - #566

Merged
edenreich merged 12 commits into
mainfrom
ci/pr-previews
Aug 17, 2026
Merged

edenreich merged 12 commits into
mainfrom
ci/pr-previews

Conversation

@edenreich

@edenreich edenreich commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Moves the docs site deployment from GitHub Pages to Cloudflare Pages, and adds per-branch preview environments.

  • Production: push to main deploys .vitepress/dist to the inference-gateway-docs Pages project (docs.inference-gateway.com).
  • Previews: every PR deploys its branch and gets https://preview-<branch>.inference-gateway.com, commented on the PR. A wildcard-route Worker (preview-router/) maps the subdomain to the branch's Pages deployment. Free-tier TLS: single-label subdomains are covered by the zone's Universal SSL wildcard.
  • Teardown: closing/merging the PR deletes that branch's preview deployments and updates the comment.
  • Removes the GitHub Pages artifact flow and public/CNAME.

One-time Cloudflare setup

  1. Create Pages project inference-gateway-docs (production branch main) and add custom domain docs.inference-gateway.com.
  2. Deploy preview-router/ (wrangler deploy) — route preview-*.inference-gateway.com/*.
  3. DNS: proxied wildcard record * so preview hosts resolve (the Worker route handles them).
  4. Repo secrets: CLOUDFLARE_API_TOKEN (Pages:Edit), CLOUDFLARE_ACCOUNT_ID.
  5. After first prod deploy: unpublish the GitHub Pages site.

no docs ticket: internal-only CI change

@edenreich
edenreich requested a review from a team as a code owner August 17, 2026 16:50
@github-actions

github-actions Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://docs.inference-gateway.com/pr-preview/pr-566/

Built to branch gh-pages at 2026-08-17 17:22 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Switch the main deploy from artifact mode to a gh-pages branch deploy
(JamesIves/github-pages-deploy-action, clean-exclude pr-preview/), and add
a preview workflow that publishes each PR under
docs.inference-gateway.com/pr-preview/pr-<number>/ via
rossjrw/pr-preview-action. Previews are removed automatically when the PR
is closed or merged. VitePress base is overridable via DOCS_BASE so
preview assets resolve under the subpath.
Production deploys to the inference-gateway-docs Pages project on push to
main; each PR branch deploys as a preview served at
preview-<branch>.inference-gateway.com through a wildcard-route Worker
(preview-router/). Previews are destroyed when the PR closes or merges.
Drops the GitHub Pages artifact flow and the gh-pages/pr-preview approach.
@edenreich edenreich changed the title ci: add PR preview deployments on GitHub Pages ci: move docs deployment and PR previews to Cloudflare Pages Aug 17, 2026
Production is a Worker (inference-gateway-docs) serving .vitepress/dist on
docs.inference-gateway.com; PR previews upload versions with a branch
preview alias, served at preview-<branch>.inference-gateway.com via the
preview-router Worker. Closing a PR points the alias at a tombstone page.
@github-actions

Copy link
Copy Markdown

@edenreich
edenreich merged commit c369b52 into main Aug 17, 2026
1 check passed
@edenreich
edenreich deleted the ci/pr-previews branch August 17, 2026 18:48
inference-gateway-releaser Bot added a commit that referenced this pull request Aug 24, 2026
## [0.9.12](0.9.11...0.9.12) (2026-08-24)

### 🐛 Bug Fixes

* auto-generate footer copyright year ([#570](#570)) ([bd7a0ad](bd7a0ad))
* **ci:** install Bun in the preview teardown job ([#567](#567)) ([68aed64](68aed64))
* **ci:** remove preview deployments with the workflow token on close ([527200a](527200a))
* connect app directly to gateway in homepage diagram ([#576](#576)) ([f74823b](f74823b))

### 👷 CI

* move docs deployment and PR previews to Cloudflare Pages ([#566](#566)) ([c369b52](c369b52))
* skip preview environment creation for dependabot PRs ([#583](#583)) ([bd22f31](bd22f31))

### 📚 Documentation

* add animated architecture diagram to homepage hero ([#568](#568)) ([aa85ad4](aa85ad4))
* add computer-use approval and pause/resume IPC ([#579](#579)) ([c4a7d9a](c4a7d9a))
* add quick-start terminal to homepage hero ([#565](#565)) ([d5c55aa](d5c55aa))
* align architecture diagrams with homepage and codebase ([#575](#575)) ([c2d9ffc](c2d9ffc))
* **cli:** update computer use to Computer tool and cgo-free build ([#584](#584)) ([cd670aa](cd670aa))
* de-duplicate provider list on homepage ([#569](#569)) ([a4726ae](a4726ae))
* drop floating window, desktop app for computer use ([#580](#580)) ([85e0a73](85e0a73))
* drop redundant 'How it works' from homepage ([#571](#571)) ([79d203c](79d203c))
* give the homepage a real contribution path ([#573](#573)) ([5ddfc8a](5ddfc8a))
* simplify the homepage ADL section for newcomers ([#572](#572)) ([684a1e2](684a1e2))

### 🔧 Miscellaneous

* **deps-dev:** bump mermaid from 11.16.1 to 11.17.0 in the bun group ([#582](#582)) ([bb85ea9](bb85ea9))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.12 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant