foxglove/Deploy to Cloudflare
Deploy to Cloudflare Pages or Workers with preview support and GitHub Deployments
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| type | Deploy type: 'pages' for Cloudflare Pages or 'workers' for Cloudflare Workers (default: workers) | no | workers |
| apiToken | Cloudflare API token | yes | — |
| accountId | Cloudflare account ID | no | — |
| directory | Directory of static assets to deploy (required for Pages) | no | — |
| projectName | Cloudflare Pages project name (required for Pages). Also used as the GitHub Deployment environment label. | no | — |
| environment | Wrangler environment name (--env flag). When unset, Workers preview deploys auto-detect env.preview in wrangler.jsonc / wrangler.json and apply --env preview if present, so previews bind to env.preview resources instead of production resources. Set this to override the auto-detection or to apply an env to production deploys. | no | — |
| workingDirectory | Directory to run wrangler commands from | no | — |
| gitHubToken | GitHub token for creating Deployment statuses. When provided, a GitHub Deployment is created with the deployment URL so it appears in the repo's Deployments tab and on PRs. | no | — |
| deployAttempts | Number of deploy attempts before failing (default: 3) | no | 3 |
| productionBranch | Branch name that triggers a production deploy (default: main) | no | main |
| previewDeploy | Whether to deploy preview environments for non-production branches (default: true) | no | true |
Outputs
| name | description |
|---|---|
| url | URL of the Cloudflare deployment |
| command-output | Standard output from the wrangler command |
| command-stderr | Standard error from the wrangler command |