zero-copy-labs/Deploy UI to Cloudflare Pages

Deploy or delete a Cloudflare Pages deployment

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime
namedescriptionrequireddefault
CLOUDFLARE_API_TOKENCloudflare API token with Pages permissionsyes
CLOUDFLARE_ACCOUNT_IDCloudflare account IDyes
DIST_FOLDERPath to the distribution folder that will be deployedyes
PROJECT_NAMECloudflare Pages project nameyes
BRANCHGit branch to deploy to (defaults to "main")nomain
EVENTAction to perform: deploy, delete-deployment, or delete-projectnodeploy
HEADERSJSON string of custom headers configuration (e.g. {"version.json":{"cacheControl":"max-age=0,no-cache,no-store,must-revalidate"}})no{}
GITHUB_TOKENGitHub token for creating deployment statuses and PR commentsno
ENVIRONMENT_NAMEName of the environment for GitHub deployment (e.g. "preview" or "production")nopreview
COMMENT_ON_PRWhether to automatically comment on the PR with the deployment URL (true/false)nofalse
COMMENT_ON_PR_CLEANUPWhether to automatically comment on the PR when the deployment is cleaned up (true/false)nofalse
PR_NUMBERPull request number for PR-specific deployments and commentsno
namedescription
urlURL of the deployed site (only available when EVENT is "deploy")