-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
43 lines (40 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
42
43
name: '🔂 Surge PR Preview 1'
description: 'Preview website in surge.sh for every pull request'
author: 'hunghg255'
branding:
icon: 'monitor'
color: 'yellow'
runs:
using: 'node16'
main: 'lib/index.js'
inputs:
surge_token:
description: 'surge.sh token'
default: 'b28ec2bac97881f7eaa019676b903925'
github_token:
description: 'github token'
required: true
default: ${{ github.token }}
build:
description: 'build scripts'
default: |
npm install
npm run build
required: false
dist:
description: 'dist folder to deploy'
default: 'public'
required: false
failOnError:
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
preview_branch:
description: 'Determines if the current branch is a preview branch'
default: 'false'
required: false
outputs:
preview_url:
description: 'The url for the related PR preview'