forked from SamKirkland/FTP-Deploy-Action
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaction.yml
42 lines (42 loc) · 1.04 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
name: 'Fast FTP'
description: 'Syncs files via FTP/SFTP to a remote server'
inputs:
server:
description: 'FTP server name (you may need to specify a port)'
required: true
username:
description: 'FTP account username'
required: true
password:
description: 'FTP account password'
required: true
method:
description: 'Protocol used to deploy (ftp or sftp)'
required: false
default: "ftp"
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'
required: false
default: "."
port:
description: "Remote port"
required: false
default: 22
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.server }}
- ${{ inputs.username }}
- ${{ inputs.password }}
- ${{ inputs.method }}
- ${{ inputs.local_dir }}
- ${{ inputs.remote_dir }}
- ${{ inputs.port }}
branding:
icon: 'upload-cloud'
color: 'blue'