-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (64 loc) · 1.8 KB
/
deploy-via-ftp.yaml
File metadata and controls
67 lines (64 loc) · 1.8 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Deploy via FTP
on:
workflow_call:
inputs:
ftp-host:
type: string
description: "FTP server to connect to"
required: true
ftp-username:
type: string
description: "FTP username to connect with"
required: true
ftp-port:
type: number
description: "FTP port to connect to"
required: false
default: 21
ftp-exclude:
type: string
description: "Files to exclude"
required: false
default: |
**/.git*
**/.git*/**
**/node_modules/**
destination-path:
type: string
description: "Destination path to remote deployment directory"
required: true
composer:
type: string
description: "Whether to run composer install"
required: false
default: "false"
npm:
type: string
description: "Whether to run npm install/build"
required: false
default: "false"
node_version:
type: string
description: "Node version to use"
required: false
default: "18"
secrets:
FTP_PASSWORD:
description: "FTP password"
required: true
jobs:
ftp_to_remote:
runs-on: ubuntu-latest
steps:
- uses: pie/.github/actions/deploy-via-ftp@main
name: Deploying to ${{inputs.destination-path}} on remote
with:
ftp-host: ${{inputs.ftp-host}}
ftp-username: ${{inputs.ftp-username}}
ftp-port: ${{inputs.ftp-port}}
ftp-password: ${{secrets.FTP_PASSWORD}}
destination-path: ${{inputs.destination-path}}
composer: ${{inputs.composer}}
npm: ${{inputs.npm}}
node_version: ${{inputs.node_version}}
ftp-exclude: ${{inputs.ftp-exclude}}