Skip to content

infra: add deployment and CI workflows - #28

Merged
MekDrop merged 5 commits into
mainfrom
feat/issue-19-ci-workflow
Apr 23, 2026
Merged

MekDrop merged 5 commits into
mainfrom
feat/issue-19-ci-workflow

Conversation

@MekDrop

@MekDrop MekDrop commented Apr 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add .github/workflows/deploy.yml — deploys the Cloudflare Worker via wrangler deploy on every push to main that touches worker/. Requires CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets in the repo.
  • Add .github/workflows/lint-build.yml — lints and builds both workspaces on pull requests to main.

Cloudflare Pages (configure in dashboard)

  • Build command: npm -w frontend run build
  • Build output directory: frontend/dist/spa
  • Environment variables: GITHUB_CLIENT_ID, GITLAB_CLIENT_ID, WORKER_URL

Worker secrets to set

wrangler secret put GITHUB_CLIENT_ID
wrangler secret put GITHUB_CLIENT_SECRET
wrangler secret put GH_SERVICE_PAT

Test plan

  • Push a change to worker/ on main — confirm Deploy Worker workflow runs and wrangler deploy succeeds
  • Open a PR — confirm Lint and Build workflow runs and passes
  • Cloudflare Pages auto-deploys frontend/dist/spa on push to main

Closes #19

@MekDrop MekDrop changed the title infra: add CI workflow for PRs infra: add deployment and CI workflows Apr 23, 2026
@MekDrop
MekDrop merged commit 0b34b1e into main Apr 23, 2026
1 check passed
@MekDrop
MekDrop deleted the feat/issue-19-ci-workflow branch April 23, 2026 00:36
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.

Deployment: Cloudflare Pages + Worker config and CI workflow

1 participant