forked from badsyntax/github-action-aws-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
65 lines (65 loc) · 2.33 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
name: 'AWS S3 Sync & Clean'
description: 'Sync or clean an S3 bucket using parallel uploads and intelligent ETAG comparisons (even for multipart files).'
author: 'Richard Willis <[email protected]>'
branding:
icon: 'upload-cloud'
color: 'gray-dark'
inputs:
bucket:
required: true
description: 'The name of the S3 bucket'
action:
required: true
description: 'The action to perform. Accepted values: sync|clean'
src-dir:
required: false
default: ''
description: 'Source directory of local files to sync (if using the sync action)'
files-glob:
required: false
default: ''
description: 'Glob pattern for source files to sync to S3 (if using the sync action)'
aws-region:
require: true
description: 'The AWS region. For example: us-east-1'
prefix:
require: false
default: ''
description: "The prefix for the uploaded object. For example: 'custom/folder'"
sync-strategy:
required: false
default: |
ETag
ContentType
CacheControl
description: 'A newline-separated list of criteria to define the sync strategy. Criteria include: ETag, ContentType, CacheControl, LastModified, ContentLength'
strip-extension-glob:
require: false
default: ''
description: "Glob pattern to strip extension (f using the sync action). For example: '**/**.html'"
cache-control:
require: false
default: ''
description: 'Cache-control header. For example: public,max-age=31536000,immutable'
acl:
required: false
default: ''
description: '"authenticated-read" | "aws-exec-read" | "bucket-owner-full-control" | "bucket-owner-read" | "private" | "public-read" | "public-read-write"'
multipart-file-size-mb:
required: false
default: 100
description: 'The minimum file size, in megabytes, for which to upload files using multipart. The default is 100'
multipart-chunk-bytes:
required: false
default: 10485760
description: 'The chunk size, in bytes, to upload multipart file parts in. The default is 10485760 (10MB)'
concurrency:
required: false
default: 6
description: 'How many processes to perform at once. Default is 6'
outputs:
modified-keys:
description: 'A comma separated list of modified object keys (either synced or removed). For example: file1,folder1/file2.ext'
runs:
using: 'node16'
main: 'dist/index.js'