forked from afc163/surge-preview
-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
41 lines (41 loc) · 1.02 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'Cloudflare Workers Preview'
description: 'Deploy Cloudflare workers preview for every pull request with Wrangler'
author: 'shidil'
inputs:
cf_token:
description: 'Cloudflare token (Edit Workers Scope)'
required: true
cf_account:
description: 'Cloudflare account id'
required: true
domain:
required: true
description: 'eg.workers.dev'
github_token:
description: 'github token'
required: true
build:
description: 'build scripts'
default: |
npm install
npm run build
required: false
project_path:
required: false
description: 'directory of the wrangler project'
failOnError:
required: false
description: 'Set `failed` if a deployment throws error'
teardown:
description: 'Determines if the preview instance will be torn down on PR close'
default: 'false'
required: false
outputs:
preview_url:
description: 'The url for the related PR preview'
runs:
using: node12
main: 'dist/index.js'
branding:
icon: 'monitor'
color: 'purple'