-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (38 loc) · 1.26 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
# This workflow will deploy service/function of Aliyun Function Compute.
#
# This workflow assumes you have already created the project using fc-alibaba-component of Serverless-Devs.
name: 'Deploy Service/Functon To Aliyun FC Function Using Serverless-Devs'
description: 'Deploy Aliyun FC Service/Function'
inputs:
working_directory:
description: 'Directory containing template.yml'
required: false
default: './'
projects:
description: 'Target projects which are delimited by space. The default * represents all projects'
required: false
default: '*'
commands:
description: 'Subcommand of the deployment command'
required: false
args:
description: 'Args of the deployment command'
required: false
outputs:
deploy-logs:
description: "Logs of deployment"
value: ${{ steps.deploy.outputs.deploy-logs }}
runs:
using: "composite"
steps:
- id: chmod
run: sudo chmod +x ${{ github.action_path }}/dev/deploy.sh
shell: bash
- id: deploy
run: ${{ github.action_path }}/dev/deploy.sh
shell: bash
env:
INPUT_WORKING_DIRECTORY: ${{ inputs.working_directory }}
INPUT_PROJECTS: ${{ inputs.projects }}
INPUT_COMMANDS: ${{ inputs.commands }}
INPUT_ARGS: ${{ inputs.args }}