wrangler-action/action.yml

40 lines
1.7 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:
using: "node16"
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
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