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
+20-8Lines changed: 20 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,23 @@
1
-
# GitHub Action for WP Engine Site Deployments
1
+

2
+
3
+
# Site Deployment GitHub Action by WP Engine
4
+
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(ize?) rsync flags
10
+
* Clear cache
11
+
* Execute a post-deploy script of your choosing
2
12
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.
4
13
5
14
v3.0 AVAILABLE NOW! [View Changelog here.](https://github.com/wpengine/github-action-wpe-site-deploy/releases)
6
15
7
16
8
17
9
18
## Setup Instructions
10
-
**TLDR;**
11
-
12
-
(step 1 & 2) Connect GitHub and WP Engine, saving Private and Public SSH key to each respectively.
13
19
14
-
(step 3) Setup local yml config to orchestrate deploy.
20
+
---
15
21
16
22
1.**SSH PRIVATE KEY SETUP IN GITHUB**
17
23
*[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*.
@@ -41,6 +47,8 @@ View your actions progress and logs by navigating to the "Actions" tab in your r
41
47
42
48
## Example GitHub Action workflow
43
49
50
+
---
51
+
44
52
### Simple main.yml:
45
53
46
54
```
@@ -91,6 +99,8 @@ jobs:
91
99
92
100
## Environment Variables & Secrets
93
101
102
+
---
103
+
94
104
### Required
95
105
96
106
| Name | Type | Usage |
@@ -101,7 +111,7 @@ jobs:
101
111
102
112
| Name | Type | Usage |
103
113
|-|-|-|
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. |
114
+
|`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
115
|`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
116
|`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
117
|`PHP_LINT`| bool | Set to TRUE to execute a php lint on your branch pre-deployment. Default is `FALSE`. |
@@ -110,7 +120,9 @@ jobs:
110
120
|`CACHE_CLEAR`| bool | Optionally clear cache post deploy. This takes a few seconds. Default is TRUE. |
111
121
112
122
113
-
### Further reading
123
+
### Further reading
124
+
125
+
---
114
126
115
127
*[Defining environment variables in GitHub Actions](https://docs.github.com/en/actions/reference/environment-variables)
116
128
*[Storing secrets in GitHub repositories](https://docs.github.com/en/actions/reference/encrypted-secrets)
0 commit comments