-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
45 lines (45 loc) · 1.8 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
name: 'amplify-cli-action-sh'
description: 'This action builds and deploys your AWS Amplify project using an SH script'
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: 'composite'
steps:
- run: |
chmod +x $GITHUB_ACTION_PATH/entrypoint.sh
$GITHUB_ACTION_PATH/entrypoint.sh "${{ 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 }}"
shell: bash
branding:
icon: 'git-commit'
color: 'orange'