-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathaction.yml
51 lines (51 loc) · 1.77 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: 'amplify-cli-action'
description: 'This action builds and deploys your AWS Amplify project'
inputs:
project_dir:
description: 'the root project directory: use it if you amplify project is not this repo root directory'
required: false
source_dir:
description: 'front-end source location where aws_exports.js will be generated'
required: false
default: 'src'
distribution_dir:
description: 'front-end artifacts deployment directory that gets uploaded to S3 during amplify publish'
required: false
default: 'dist'
build_command:
description: 'a build command to run with amplify publish (to build front-end deployment artifacts)'
required: false
default: 'npm run build'
amplify_env:
description: 'amplify environment to use'
required: true
amplify_command:
description: 'amplify command: SUPPORTED: [configure, push, publish, status, add_env, delete_env]'
required: true
amplify_cli_version:
description: 'version of amplify/cli used'
required: false
delete_lock:
description: 'deletion protection: explicitly set this to false if you want amplify delete to work'
required: false
default: true
amplify_arguments:
description: 'additional arguments to pass to ampify_command defined command'
required: false
default: ''
runs:
using: 'docker'
image: 'docker://ghcr.io/ambientlight/amplify-cli-action/amplify-cli-action:0.3.0'
args:
- ${{ inputs.project_dir }}
- ${{ inputs.source_dir }}
- ${{ inputs.distribution_dir }}
- ${{ inputs.build_command }}
- ${{ inputs.amplify_command }}
- ${{ inputs.amplify_env }}
- ${{ inputs.delete_lock }}
- ${{ inputs.amplify_cli_version }}
- ${{ inputs.amplify_arguments }}
branding:
icon: 'git-commit'
color: 'orange'