-
Notifications
You must be signed in to change notification settings - Fork 18
/
action.yml
82 lines (80 loc) · 2.4 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: 'aliyun-oss-website-action'
description: 'Deploy your static website on aliyun OSS'
author: 'Binwei Fang <fangbinwei@yeah.net>'
branding:
icon: 'upload'
color: 'gray-dark'
inputs:
folder:
description: 'Folder which contains the website files'
required: true
exclude:
description: 'Exclude file from the folder'
required: false
accessKeyId:
description: 'Aliyun OSS accessKeyId.'
required: true
accessKeySecret:
description: 'Aliyun OSS accessKeySecret.'
required: true
bucket:
description: 'Aliyun OSS bucket instance.'
required: true
endpoint:
description: 'OSS region domain'
required: true
cname:
description: '`true` to identify the endpoint is your custom domain.'
required: false
default: 'false'
skipSetting:
description: '`true` to skip setting static pages related configuration. `indexPage`, `notFoundPage` will not be used.'
required: false
default: 'false'
incremental:
description: 'Save info of uploaded files to increase next upload speed'
required: false
default: 'true'
indexPage:
description: 'index page'
required: false
default: 'index.html'
notFoundPage:
description: 'not found page'
required: false
default: '404.html'
htmlCacheControl:
description: 'Cache-Control for HTML'
required: false
default: 'no-cache'
imageCacheControl:
description: 'Cache-Control for image'
required: false
default: 'max-age=864000'
pdfCacheControl:
description: 'Cache-Control for PDF'
required: false
default: 'max-age=2592000'
otherCacheControl:
description: 'Cache-Control for other files'
required: false
default: 'max-age=2592000'
runs:
using: 'docker'
image: 'Dockerfile'
env:
ACCESS_KEY_ID: ${{ inputs.accessKeyId }}
ACCESS_KEY_SECRET: ${{ inputs.accessKeySecret }}
BUCKET: ${{ inputs.bucket }}
ENDPOINT: ${{ inputs.endpoint }}
CNAME: ${{ inputs.cname }}
FOLDER: ${{ inputs.folder }}
EXCLUDE: ${{ inputs.exclude }}
SKIP_SETTING: ${{ inputs.skipSetting }}
INCREMENTAL: ${{ inputs.incremental }}
INDEX_PAGE: ${{ inputs.indexPage }}
NOT_FOUND_PAGE: ${{ inputs.notFoundPage }}
HTML_CACHE_CONTROL: ${{ inputs.htmlCacheControl }}
IMAGE_CACHE_CONTROL: ${{ inputs.imageCacheControl }}
OTHER_CACHE_CONTROL: ${{ inputs.otherCacheControl }}
PDF_CACHE_CONTROL: ${{ inputs.pdfCacheControl }}