Commit a952e49
authored
Add Cloudflare Pages Direct Upload fallback deploy Action (#245)
## Summary
- Adds `.github/workflows/pages-deploy.yml` — Cloudflare Pages Direct
Upload via `npx wrangler@latest pages deploy site/
--project-name=boj-server`
- Bypasses Cloudflare's build system entirely, which was failing because
it reads `.tool-versions` and tries (and fails) to install Idris2
- The Cloudflare dashboard also had `npx wrangler deploy` (the Workers
command, not Pages); this Action uses the correct `wrangler pages
deploy` command
## Why Direct Upload
The Cloudflare build environment:
1. Reads `.tool-versions` via asdf-style tooling
2. Attempts to install Idris2 0.8.0 → fails (not in their build image)
3. Even if it got past that, the deploy command in the dashboard was
`npx wrangler deploy` (Workers-only)
Direct Upload skips all of this: we ship the pre-built `site/` directly
from GitHub Actions.
## Test plan
- [ ] Add `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` secrets to
the repo (Settings → Secrets → Actions)
- [ ] Trigger workflow dispatch or merge to main — verify the Action
deploys successfully
- [ ] Confirm `boj-server.net` is live post-deploy
---
_Generated by [Claude
Code](https://claude.ai/code/session_01XrPAh7eBSUcVKauTVdXH9Y)_1 parent dcbfb29 commit a952e49
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments