-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
51 lines (51 loc) · 1.47 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
name: 'S3 upload'
description: 'Github action to upload to S3 and add a version to the name'
author: 'Fixter'
inputs:
aws-access-key-id:
description: 'AWS access key id'
required: true
aws-secret-access-key:
description: 'AWS secret access key'
required: true
aws-region:
description: 'AWS region'
default: 'eu-west-1'
required: false
github_ref:
description: 'Reference to the branch or tag beeing built'
required: false
bucket_name:
description: 'Name of the bucket'
required: true
bucket_path:
description: 'Upload path in the bucket'
default: ''
required: false
no_release_path:
description: 'Do not append release version path to the bucket_path'
default: ''
required: false
target:
description: 'File to upload'
required: false
target_dir:
description: 'Directory to upload'
required: false
sync_options:
description: 'additional options for `aws s3 sync`'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
env:
AWS_ACCESS_KEY_ID: ${{ inputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}
AWS_DEFAULT_REGION: ${{ inputs.aws-region }}
GITHUB_REF: ${{ inputs.github_ref }}
BUCKET_NAME: ${{ inputs.bucket_name }}
BUCKET_PATH: ${{ inputs.bucket_path }}
NO_RELEASE_PATH: ${{ inputs.no_release_path }}
TARGET: ${{ inputs.target }}
TARGET_DIR: ${{ inputs.target_dir }}
SYNC_OPTIONS: ${{ inputs.sync_options }}