forked from lewandy/vue-s3-deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
39 lines (36 loc) · 1.17 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
name: "Github action for deploy Vue app to Amazon s3 bucket 🗑"
description: "Easy way to build and upload distributibles files of Vue application to amazon s3 bucket"
branding:
icon: "archive"
color: "orange"
inputs:
AWS_ACCESS_KEY_ID:
description: "Amazon access key id"
required: true
AWS_SECRET_ACCESS_KEY:
description: "Amazon secret access key"
required: true
AWS_DEFAULT_REGION:
description: "Bucket region. (Ex: us-east-1)"
required: true
AWS_BUCKET_NAME:
description: "Aws bucket name"
required: true
APP_SOURCE_CODE:
description: "Source files location. Default: root directory."
required: false
default: ./
BUILD_COMMAND:
description: "Command used to build your application. Ex: `npm run build`"
required: false
default: production
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_DEFAULT_REGION }}
AWS_BUCKET_NAME: ${{ inputs.AWS_BUCKET_NAME }}
APP_SOURCE_CODE: ${{ inputs.APP_SOURCE_CODE }}
BUILD_COMMAND: ${{ inputs.BUILD_COMMAND }}