wrangler-action/action.yml

48 lines
2.1 KiB
YAML
Raw Normal View History

2020-06-16 06:09:55 +02:00
name: "Deploy to Cloudflare Workers with Wrangler"
2019-10-15 17:14:20 +02:00
branding:
2020-06-16 06:09:55 +02:00
icon: "upload-cloud"
color: "orange"
description: "Deploy your Cloudflare projects from GitHub using Wrangler"
2019-10-07 21:41:21 +02:00
runs:
2023-09-04 20:54:36 +02:00
# Possible values: https://github.com/actions/runner/blob/main/src/Runner.Common/Util/NodeUtil.cs#L9
2023-09-04 20:50:59 +02:00
using: "node20"
main: "dist/index.mjs"
2019-10-11 21:25:47 +02:00
inputs:
2022-05-09 12:49:03 +02:00
apiToken:
description: "Your Cloudflare API Token"
required: false
accountId:
description: "Your Cloudflare Account ID"
required: false
quiet:
description: "Supresses output from Wrangler commands, defaults to `false`"
required: false
default: "false"
environment:
2023-08-07 21:57:12 +02:00
description: "The environment you'd like to deploy your Workers project to - must be defined in wrangler.toml"
workingDirectory:
description: "The relative path which Wrangler commands should be run from"
2022-05-09 12:49:03 +02:00
required: false
wranglerVersion:
2023-08-07 21:57:12 +02:00
description: "The version of Wrangler you'd like to use to deploy your Workers project"
2022-05-09 12:49:03 +02:00
required: false
2020-06-16 06:09:55 +02:00
secrets:
description: "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."
2020-06-16 06:09:55 +02:00
required: false
2020-08-07 23:16:42 +02:00
preCommands:
2023-08-07 21:57:12 +02:00
description: "Commands to execute before deploying the Workers project"
2020-08-07 23:16:42 +02:00
required: false
postCommands:
2023-08-07 21:57:12 +02:00
description: "Commands to execute after deploying the Workers project"
2020-08-07 23:16:42 +02:00
required: false
2022-05-09 12:49:03 +02:00
command:
description: '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"`.'
required: false
vars:
description: "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."
required: false
2023-09-01 23:34:18 +02:00
packageManager:
description: "The package manager you'd like to use to install and run wrangler. If not specified, a value will be inferred based on the presence of a lockfile. Valid values: [npm, pnpm, yarn, bun]"
2023-09-13 01:27:33 +02:00
required: false
default: npm