Skip to content

Commit 5f8f650

Browse files
author
Daniel Savo
committed
Update and polish repo documentation
1 parent dc3acfe commit 5f8f650

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

README.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
# GitHub Action for WP Engine Site Deployments
1+
![Site Deployment GitHub Action by WP Engine](docs/images/banner.jpg)
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
212

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.
413

514
v3.0 AVAILABLE NOW! [View Changelog here.](https://github.com/wpengine/github-action-wpe-site-deploy/releases)
615

716

817

918
## Setup Instructions
10-
**TLDR;**
11-
12-
(step 1 & 2) Connect GitHub and WP Engine, saving Private and Public SSH key to each respectively.
1319

14-
(step 3) Setup local yml config to orchestrate deploy.
20+
---
1521

1622
1. **SSH PRIVATE KEY SETUP IN GITHUB**
1723
* [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
4147

4248
## Example GitHub Action workflow
4349

50+
---
51+
4452
### Simple main.yml:
4553

4654
```
@@ -91,6 +99,8 @@ jobs:
9199

92100
## Environment Variables & Secrets
93101

102+
---
103+
94104
### Required
95105

96106
| Name | Type | Usage |
@@ -101,7 +111,7 @@ jobs:
101111

102112
| Name | Type | Usage |
103113
|-|-|-|
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. |
105115
| `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. |
106116
| `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. |
107117
| `PHP_LINT` | bool | Set to TRUE to execute a php lint on your branch pre-deployment. Default is `FALSE`. |
@@ -110,7 +120,9 @@ jobs:
110120
| `CACHE_CLEAR` | bool | Optionally clear cache post deploy. This takes a few seconds. Default is TRUE. |
111121

112122

113-
### Further reading
123+
### Further reading
124+
125+
---
114126

115127
* [Defining environment variables in GitHub Actions](https://docs.github.com/en/actions/reference/environment-variables)
116128
* [Storing secrets in GitHub repositories](https://docs.github.com/en/actions/reference/encrypted-secrets)

docs/images/banner.jpg

197 KB
Loading

0 commit comments

Comments
 (0)