-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
63 lines (60 loc) · 2.22 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: "Bunny.net Storage Deployer"
author: "Kinane"
description: "A github action to deploy a glob pattern to bunny.net storage and flush the associated pull zone"
inputs:
upload:
description: >
It will upload files and folders if "true" provided. source, storageZoneName and storagePassword inputs should be provided.
type: boolean
default: false
remove:
description: >
It will remove all the files from storage before uploading if "true" provided.
type: boolean
default: false
storageName:
description: >
The name of storage zone where you are connecting to.
required: true
storageEndpoint:
description: >
The storage endpoint. Default value is storage.bunnycdn.com
default: storage.bunnycdn.com
storagePassword:
description: >
The storage password. It should be read and write capable.
required: true
sourcePattern:
description: >
The glob pattern to retrieve the files from, like `./dist/**/*.js`
required: true
destination:
description: >
The destination directory that should be uploaded to in the bunny storage zone. (Example: www). The destination should not have a trailing / as in www/.
If you want to upload files to a nested directory, you can specify the path to the directory in the destination parameter. For example, if you want to upload files to a directory called assets inside the www directory, you can set the destination parameter to www/assets.
Note that the nested directory will be automatically created by the CDN if it does not already exist.
required: true
purgePullZone:
description: >
It will purge the pull zone if "true" provided. pullZoneId and accessKey inputs should be provided.
type: boolean
default: false
apiKey:
description: >
You can retrieve your api key from your profile settings
required: true
pullZoneId:
description: >
You can retrieve your pull zone id directly from its url: https://dash.bunny.net/cdn/PULL_ZONE_ID/general/hostnames
required: true
verbose:
description: >
Verbose mode
required: false
default: false
runs:
using: "node20"
main: "dist/index.js"
branding:
icon: "upload-cloud"
color: "orange"