You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,21 @@
1
-
# GitHub Action for WP Engine Site Deployments
1
+

2
2
3
-
This GitHub Action may be used to deploy code from a GitHub repo to a WP Engine environment of your choosing. Deploy a full site directory or a subdirectory of your WordPress install. Other options include performing a PHP Lint, custom rsync flags, clearing cache and a executing a post-deploy script of your choosing.
3
+
# Site Deployment GitHub Action by WP Engine
4
4
5
-
v3.0 AVAILABLE NOW! [View Changelog here.](https://github.com/wpengine/github-action-wpe-site-deploy/releases)
5
+
Use this GitHub Action to deploy code from a GitHub repo to a WP Engine environment of your choosing.
6
+
What this action lets you do:
7
+
* Deploy a full site directory or a subdirectory of your WordPress install
8
+
* Perform a PHP Lint
9
+
* Custom rsync flags
10
+
* Clear cache
11
+
* Execute a post-deploy script of your choosing
6
12
7
13
14
+
v3.0 AVAILABLE NOW! [View Changelog here.](https://github.com/wpengine/github-action-wpe-site-deploy/releases)
8
15
9
-
## Setup Instructions
10
-
**TLDR;**
11
16
12
-
(step 1 & 2) Connect GitHub and WP Engine, saving Private and Public SSH key to each respectively.
13
17
14
-
(step 3) Setup local yml config to orchestrate deploy.
18
+
## Setup Instructions
15
19
16
20
1.**SSH PRIVATE KEY SETUP IN GITHUB**
17
21
*[Generate a new SSH key pair](https://wpengine.com/support/ssh-keys-for-shell-access/#Generate_New_SSH_Key) if you have not already done so. Please note that this SSH Key needs to be *passwordless*.
@@ -101,7 +105,7 @@ jobs:
101
105
102
106
| Name | Type | Usage |
103
107
|-|-|-|
104
-
|`WPE_ENV`| string | Insert the name of the WP Engine environment you want to deploy to. This also has an alias of `PRD_ENV`, `STG_ENV`, or `DEV_ENV` for multistep workflows. |
108
+
|`WPE_ENV`| string | Insert the name of the WP Engine environment you want to deploy to. This also has an alias of `PRD_ENV`, `STG_ENV`, or `DEV_ENV` for multi-step workflows. |
105
109
|`SRC_PATH`| string | Optional path to specify a directory within the repo to deploy from. Ex. `"wp-content/themes/genesis-child-theme/"`. Defaults to root of repo filesystem as source. |
106
110
|`REMOTE_PATH`| string | Optional path to specify a directory destination to deploy to. Ex. `"wp-content/themes/genesis-child-theme/"` . Defaults to WordPress root directory on WP Engine. |
107
111
|`PHP_LINT`| bool | Set to TRUE to execute a php lint on your branch pre-deployment. Default is `FALSE`. |
@@ -110,7 +114,7 @@ jobs:
110
114
|`CACHE_CLEAR`| bool | Optionally clear cache post deploy. This takes a few seconds. Default is TRUE. |
111
115
112
116
113
-
### Further reading
117
+
### Further reading
114
118
115
119
*[Defining environment variables in GitHub Actions](https://docs.github.com/en/actions/reference/environment-variables)
116
120
*[Storing secrets in GitHub repositories](https://docs.github.com/en/actions/reference/encrypted-secrets)
0 commit comments