Skip to content

feat: switch deployment from GitHub Pages to Cloudflare Pages - #1

Merged
manabeai merged 2 commits into
mainfrom
deploy/cloudflare-pages
Jun 19, 2026
Merged

manabeai merged 2 commits into
mainfrom
deploy/cloudflare-pages

Conversation

@manabeai

Copy link
Copy Markdown
Owner

Summary

Switch production deployment from GitHub Pages to Cloudflare Pages.

The WASM build (wasm-pack + Rust toolchain) stays on the GitHub Actions runner — only the deploy step changes.

Changes

  • vite.config.ts: Simplify base to '/' — Cloudflare Pages serves at root, so the GitHub Pages path prefix (/<repo-name>/) is no longer needed
  • .github/workflows/deploy-pages.yml: Replace actions/upload-pages-artifact + actions/deploy-pages with cloudflare/pages-action@v1. Single job (was two), removed Pages-specific permissions (pages:write, id-token:write)
  • README.md: Update deployment section with Cloudflare Pages prerequisites

Prerequisites (before this can deploy)

  1. Create a Cloudflare Pages project named random-test-creator-web
  2. Generate a Cloudflare API token with Cloudflare Pages — Edit permission
  3. Add these secrets to the GitHub repository:
    • CLOUDFLARE_API_TOKEN
    • CLOUDFLARE_ACCOUNT_ID

Trigger

Same as before: push a v* tag, or use workflow_dispatch.

- Replace pages upload/deploy with cloudflare/pages-action@v1
- Simplify vite base to '/' (Cloudflare Pages serves at root)
- Remove GitHub Pages-specific permissions (pages:write, id-token:write)
- Add Cloudflare API token and account ID prerequisites to README

The WASM build (wasm-pack + Rust toolchain) stays on the GitHub runner.
Production deployments are triggered by v* tags or workflow_dispatch.
Requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets to be
set in the GitHub repository.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
random-test-creator-web 3eab44b Jun 19 2026, 11:34 PM

@manabeai
manabeai merged commit 35115ff into main Jun 19, 2026
4 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.

1 participant