forked from SamKirkland/FTP-Deploy-Action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
46 lines (46 loc) · 1.25 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
name: 'FTP Deploy'
description: 'Syncs files via FTP/SFTP to a remote server'
inputs:
ftp_server:
description: 'FTP server name (you may need to specify a port)'
required: true
ftp_username:
description: 'FTP account username'
required: true
ftp_password:
description: 'FTP account password'
required: true
method:
description: 'Protocol used to deploy (ftp or sftp)'
required: false
default: "ftp"
port:
description: 'The port used to connect to server'
required: false
default: "21"
local_dir:
description: 'The local folder to copy, defaults to root project folder'
required: false
default: ""
remote_dir:
description: 'The remote folder to copy to, deafults to root FTP folder (I recommend you configure this on your server side instead of here)'
required: false
default: ""
ARGS:
description: 'Passes through options into lftp'
required: false
default: ""
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.ftp_server }}
- ${{ inputs.ftp_username }}
- ${{ inputs.ftp_password }}
- ${{ inputs.method }}
- ${{ inputs.port }}
- ${{ inputs.local_dir }}
- ${{ inputs.remote_dir }}
branding:
icon: 'upload-cloud'
color: 'orange'