zero-copy-labs/Deploy UI to Cloudflare Pages
Deploy or delete a Cloudflare Pages deployment
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| CLOUDFLARE_API_TOKEN | Cloudflare API token with Pages permissions | yes | — |
| CLOUDFLARE_ACCOUNT_ID | Cloudflare account ID | yes | — |
| DIST_FOLDER | Path to the distribution folder that will be deployed | yes | — |
| PROJECT_NAME | Cloudflare Pages project name | yes | — |
| BRANCH | Git branch to deploy to (defaults to "main") | no | main |
| EVENT | Action to perform: deploy, delete-deployment, or delete-project | no | deploy |
| HEADERS | JSON string of custom headers configuration (e.g. {"version.json":{"cacheControl":"max-age=0,no-cache,no-store,must-revalidate"}}) | no | {} |
| GITHUB_TOKEN | GitHub token for creating deployment statuses and PR comments | no | — |
| ENVIRONMENT_NAME | Name of the environment for GitHub deployment (e.g. "preview" or "production") | no | preview |
| COMMENT_ON_PR | Whether to automatically comment on the PR with the deployment URL (true/false) | no | false |
| COMMENT_ON_PR_CLEANUP | Whether to automatically comment on the PR when the deployment is cleaned up (true/false) | no | false |
| PR_NUMBER | Pull request number for PR-specific deployments and comments | no | — |
Outputs
| name | description |
|---|---|
| url | URL of the deployed site (only available when EVENT is "deploy") |