step-security/Deploy to Cloudflare Workers with Wrangler
Deploy your Cloudflare projects from GitHub using Wrangler
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| apiToken | Your Cloudflare API Token | no | — |
| accountId | Your Cloudflare Account ID | no | — |
| quiet | Supresses output from Wrangler commands, defaults to `false` | no | false |
| environment | The environment you'd like to deploy your Workers project to - must be defined in wrangler.toml | — | — |
| workingDirectory | The relative path which Wrangler commands should be run from | no | — |
| wranglerVersion | The version of Wrangler you'd like to use to deploy your Workers project | no | — |
| secrets | A string of environment variable names, separated by newlines. These will be bound to your Worker as Secrets and must match the names of environment variables declared in `env` of this workflow. | no | — |
| preCommands | Commands to execute before deploying the Workers project | no | — |
| postCommands | Commands to execute after deploying the Workers project | no | — |
| command | The Wrangler command (along with any arguments) you wish to run. Multiple Wrangler commands can be run by separating each command with a newline. Defaults to `"deploy"`. | no | — |
| vars | A string of environment variable names, separated by newlines. These will be bound to your Worker using the values of matching environment variables declared in `env` of this workflow. | no | — |
| packageManager | The package manager you'd like to use to install and run wrangler. If not specified, the preferred package manager will be inferred based on the presence of a lockfile or fallback to using npm if no lockfile is found. Valid values are `npm` | `pnpm` | `yarn` | `bun`. | no | — |
| gitHubToken | GitHub Token | no | — |
Outputs
| name | description |
|---|---|
| command-output | The output of the Wrangler command (comes from stdout) |
| command-stderr | The error output of the Wrangler command (comes from stderr) |
| deployment-url | If the command was a Workers or Pages deployment, this will be the URL of the deployment |
| pages-deployment-alias-url | If the command was a Pages deployment, this will be the URL of the deployment alias (if it exists) - needs wrangler >= 3.78.0 |
| pages-deployment-id | If the command was a Pages deployment, this will be the ID of the deployment - needs wrangler >= 3.81.0 |
| pages-environment | If the command was a Pages deployment, this will be the environment of the deployment - needs wrangler >= 3.81.0 |