dytsou/Cloudflare Subpath Deploy

Deploy a static site to Cloudflare Pages and register its subpath on a front-door Worker route manifest.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
contract-pathPath to deploy-contract.json in caller repodeploy-contract.json
output-dirPre-built static output directory (caller builds before calling)dist
production-branchProduction branch used when auto-creating the Pages projectmain
register-routeUpsert route manifest and redeploy front-door Workertrue
manifest-repoOwner/repo holding route-manifest.json and Worker codeyes
manifest-pathPath to route-manifest.json inside manifest reposrc/data/route-manifest.json
worker-directoryFront-door Worker directory inside manifest repoworkers/front-door
manifest-branchBase branch for manifest PRsmain
create-prOpen PR for manifest changes instead of direct pushtrue
deploy-workerRedeploy front-door Worker after manifest change (site repo only)false
smoke-canonicalSmoke canonical SITE_URL (enable after dy.tsou.me routes to Worker; CI IPs may be blocked)false
cloudflare-api-tokenCloudflare API token (Pages deploy; Worker deploy when deploy-worker=true)yes
cloudflare-account-idCloudflare account IDyes
manifest-repo-tokenToken with manifest-repo write access (scoped PAT or GITHUB_TOKEN for self-deploy)yes
namedescription
pages-urlDeployed Pages backend URL (*.pages.dev)
canonical-urlCanonical URL from deploy-contract.json
manifest-pr-urlPR URL if create-pr=true