dytsou/Cloudflare Subpath Deploy
Deploy a static site to Cloudflare Pages and register its subpath on a front-door Worker route manifest.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| contract-path | Path to deploy-contract.json in caller repo | — | deploy-contract.json |
| output-dir | Pre-built static output directory (caller builds before calling) | — | dist |
| production-branch | Production branch used when auto-creating the Pages project | — | main |
| register-route | Upsert route manifest and redeploy front-door Worker | — | true |
| manifest-repo | Owner/repo holding route-manifest.json and Worker code | yes | — |
| manifest-path | Path to route-manifest.json inside manifest repo | — | src/data/route-manifest.json |
| worker-directory | Front-door Worker directory inside manifest repo | — | workers/front-door |
| manifest-branch | Base branch for manifest PRs | — | main |
| create-pr | Open PR for manifest changes instead of direct push | — | true |
| deploy-worker | Redeploy front-door Worker after manifest change (site repo only) | — | false |
| smoke-canonical | Smoke canonical SITE_URL (enable after dy.tsou.me routes to Worker; CI IPs may be blocked) | — | false |
| cloudflare-api-token | Cloudflare API token (Pages deploy; Worker deploy when deploy-worker=true) | yes | — |
| cloudflare-account-id | Cloudflare account ID | yes | — |
| manifest-repo-token | Token with manifest-repo write access (scoped PAT or GITHUB_TOKEN for self-deploy) | yes | — |
Outputs
| name | description |
|---|---|
| pages-url | Deployed Pages backend URL (*.pages.dev) |
| canonical-url | Canonical URL from deploy-contract.json |
| manifest-pr-url | PR URL if create-pr=true |