-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
54 lines (52 loc) · 1.94 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
47
48
49
50
51
52
53
54
name: "WordPress Deployment Action"
description: "Easily deploy code from GitHub to WordPress on Pressable or WP Engine using an SSH private key and the rsync command."
branding:
icon: "upload-cloud"
color: "red"
inputs:
SERVER_TYPE:
description: "The type of server to deploy to. So far, only Pressable ('preesable') and WP Engine ('wpengine') are supported"
required: true
SSH_PRIVATE_KEY:
description: "The private SSH key. You must save this in the GitHub Secrets and authorize it on Pressable or WP Engine."
required: true
SERVER_ID:
description: "The SSH username for Pressable deployments or the install name for WP Engine deployments."
required: true
REMOTE_PATH:
description: "The remote path on the server where files should be deployed. Defaults to the site root directory."
default: ""
required: false
SRC_PATH:
description: "Local path to the source files to deploy. Defaults to the repository root."
default: "."
required: false
FLAGS:
description: "Rsync flags to control the behavior of file synchronization."
default: "-azvrhi --inplace --exclude='.*'"
required: false
PHP_LINT:
description: "Set to 'TRUE' to enable PHP linting before deployment. Defaults to 'FALSE'."
default: "FALSE"
required: false
CACHE_CLEAR:
description: "Set to 'TRUE' to clear cache after deployment. Defaults to 'FALSE'."
default: "FALSE"
required: false
SCRIPT:
description: "Custom script to run on the remote server after deployment."
default: ""
required: false
runs:
using: "docker"
image: "Dockerfile"
env:
SERVER_TYPE: ${{ inputs.SERVER_TYPE }}
SSH_PRIVATE_KEY: ${{ inputs.SSH_PRIVATE_KEY }}
SERVER_ID: ${{ inputs.SERVER_ID }}
REMOTE_PATH: ${{ inputs.REMOTE_PATH }}
SRC_PATH: ${{ inputs.SRC_PATH }}
FLAGS: ${{ inputs.FLAGS }}
PHP_LINT: ${{ inputs.PHP_LINT }}
CACHE_CLEAR: ${{ inputs.CACHE_CLEAR }}
SCRIPT: ${{ inputs.SCRIPT }}