Skip to content

Add CI workflow to push-deploy ui/ as bedhost-ui worker#274

Merged
nsheff merged 3 commits into
masterfrom
add-ui-deploy-workflow
Jun 16, 2026
Merged

Add CI workflow to push-deploy ui/ as bedhost-ui worker#274
nsheff merged 3 commits into
masterfrom
add-ui-deploy-workflow

Conversation

@nsheff

@nsheff nsheff commented Jun 16, 2026

Copy link
Copy Markdown
Member

Adds .github/workflows/deploy-ui.yml so the ui/ frontend deploys to the bedhost-ui Cloudflare Worker via GitHub Actions on push to master (paths: ui/**) + manual dispatch.

Builds with production VITE_API_BASE=https://api.bedbase.org/v1 (matches the current Pages production env). Uses the existing ui/wrangler.jsonc (worker.ts + static assets). Part of migrating bedbase.org off the Cloudflare Pages pull build onto a push Worker.

Note: ui/ has no committed package-lock.json, so the workflow uses npm install; switch to npm ci once a lockfile is committed.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 16, 2026

Copy link
Copy Markdown

Deploying bedhost-ui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9b8aaf4
Status: ✅  Deploy successful!
Preview URL: https://39dddc24.bedhost.pages.dev
Branch Preview URL: https://add-ui-deploy-workflow.bedhost.pages.dev

View logs

Copilot AI review requested due to automatic review settings June 16, 2026 18:26

Copilot AI 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.

Pull request overview

Adds a GitHub Actions workflow to build the ui/ frontend and deploy it to the bedhost-ui Cloudflare Worker on pushes to master (scoped to ui/**) and via manual dispatch, supporting the migration away from Cloudflare Pages pull builds.

Changes:

  • Introduces .github/workflows/deploy-ui.yml to install dependencies, build the Vite app with VITE_API_BASE=https://api.bedbase.org/v1, and deploy via cloudflare/wrangler-action@v3.
  • Configures triggers for push-to-master deployments limited to changes under ui/**, plus workflow_dispatch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +12 to +15
jobs:
deploy:
name: Build and deploy ui/ to Cloudflare Workers
runs-on: ubuntu-latest
Comment thread .github/workflows/deploy-ui.yml
nsheff and others added 2 commits June 16, 2026 14:35
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@nsheff nsheff merged commit aea32b2 into master Jun 16, 2026
2 checks passed
@nsheff nsheff deleted the add-ui-deploy-workflow branch June 16, 2026 18:45
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.

2 participants