-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
92 lines (91 loc) · 2.66 KB
/
action.yml
File metadata and controls
92 lines (91 loc) · 2.66 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: "Deploy to QuantCDN"
description: "An action to deploy your build to QuantCDN"
author: "QuantCDN"
inputs:
customer:
description: "Your customer account name"
required: true
project:
description: "Your project name"
required: true
token:
description: "Your API token"
required: true
dir:
description: "The directory to deploy"
required: false
skip-unpublish:
description: "Skip automatic unpublishing of assets"
required: false
default: false
skip-unpublish-regex:
description: "Skip automatic unpublishing of assets (by regex)"
required: false
default: ""
skip-purge:
description: "Skip automatic purge of cached assets in CDN"
required: false
default: false
force:
description: "Force the deployment of assets (skip md5 check)"
required: false
default: false
chunk-size:
description: "Alter the concurrency of deployment"
required: false
default: 10
endpoint:
description: "Specify the QuantCDN API endpoint"
required: false
default: "https://api.quantcdn.io/v1"
revision-log:
description: "Specify a location for the local revision log file"
required: false
default: "false"
enable-index-html:
description: "Enable index.html creation in Quant"
required: false
default: false
functions:
description: "Path to JSON file containing functions configuration"
required: false
runs:
using: "composite"
steps:
- name: Deploy Functions
if: inputs.functions != ''
uses: "docker://quantcdn/cli:6.1.0"
env:
CUSTOMER: ${{ inputs.customer }}
TOKEN: ${{ inputs.token }}
PROJECT: ${{ inputs.project }}
ENDPOINT: ${{ inputs.endpoint }}
with:
args: >
functions
${{ inputs.functions }}
-c ${{ inputs.customer }}
-t ${{ inputs.token }}
-p ${{ inputs.project }}
-e ${{ inputs.endpoint }}
- name: Deploy Assets
if: inputs.dir != ''
uses: "docker://quantcdn/cli:6.1.0"
with:
args: >
deploy
/github/workspace/${{ inputs.dir }}
-c ${{ inputs.customer }}
-t ${{ inputs.token }}
-p ${{ inputs.project }}
--skip-unpublish=${{ inputs.skip-unpublish }}
--skip-unpublish-regex="${{ inputs.skip-unpublish-regex }}"
--skip-purge=${{ inputs.skip-purge }}
--force=${{ inputs.force }}
--chunk-size=${{ inputs.chunk-size }}
--endpoint=${{ inputs.endpoint }}
--revision-log=${{ inputs.revision-log }}
--enable-index-html=${{ inputs.enable-index-html }}
branding:
icon: "upload-cloud"
color: "blue"