Skip to content

Commit 408a9f4

Browse files
committed
[CICD-69] Include -azvr documentation in README.md
1 parent 8f5426e commit 408a9f4

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@
22

33
# Site Deployment GitHub Action by WP Engine
44

5-
Use this GitHub Action to deploy code from a GitHub repo to a WP Engine environment of your choosing.
5+
Use this GitHub Action to deploy code from a GitHub repo to a WP Engine environment of your choosing.
66
What this action lets you do:
77
* Deploy a full site directory or a subdirectory of your WordPress install
88
* Perform a PHP Lint
99
* Custom rsync flags
10-
* Clear cache
10+
* Clear cache
1111
* Execute a post-deploy script of your choosing
1212

1313

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

1616

1717

18-
## Setup Instructions
18+
## Setup Instructions
1919

2020
1. **SSH PRIVATE KEY SETUP IN GITHUB**
2121
* [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*.
2222

23-
* Add the *SSH Private Key* to your [Repository Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) or your [Organization Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-an-organization). Save the new secret "Name" as `WPE_SSHG_KEY_PRIVATE`.
23+
* Add the *SSH Private Key* to your [Repository Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) or your [Organization Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-an-organization). Save the new secret "Name" as `WPE_SSHG_KEY_PRIVATE`.
2424

25-
**NOTE:** If using a GitHub Organization, adding the SSH key to the [Organization Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-an-organization) will allow all repos to reference the same SSH key for deploys using the method in the sample `main.yml`. The SSH Key also connects to all installs made available to its WP Engine User. One key can then effectively be used to deploy all projects to their respective sites on WP Engine. Less work. More deploys!
25+
**NOTE:** If using a GitHub Organization, adding the SSH key to the [Organization Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-an-organization) will allow all repos to reference the same SSH key for deploys using the method in the sample `main.yml`. The SSH Key also connects to all installs made available to its WP Engine User. One key can then effectively be used to deploy all projects to their respective sites on WP Engine. Less work. More deploys!
2626

2727
2. **SSH PUBLIC KEY SETUP IN WP ENGINE**
2828

29-
* Add *SSH Public Key* to WP Engine SSH Gateway Key settings. [This Guide will show you how.](https://wpengine.com/support/ssh-gateway/#Add_SSH_Key)
29+
* Add *SSH Public Key* to WP Engine SSH Gateway Key settings. [This Guide will show you how.](https://wpengine.com/support/ssh-gateway/#Add_SSH_Key)
3030

3131
**NOTE:** This Action DOES NOT utilize WP Engine GitPush or the GitPush SSH keys [found here.](https://wpengine.com/support/git/#Add_SSH_Key_to_User_Portal)
32-
32+
3333
3. **YML SETUP**
3434

35-
* Create `.github/workflows/main.yml` directory and file locally.
35+
* Create `.github/workflows/main.yml` directory and file locally.
3636
Copy and paste the configuration from below, replacing the value under `branches:` and the value for `WPE_ENV:`.
3737

38-
* To deploy from another branch, simply create another yml file locally for that branch, such as `.github/workflows/stage.yml` and replace the values for `branches:` and `WPE_ENV:` for that workflow.
38+
* To deploy from another branch, simply create another yml file locally for that branch, such as `.github/workflows/stage.yml` and replace the values for `branches:` and `WPE_ENV:` for that workflow.
3939

40-
This provides the ability to perform a different workflow for different branches/environments. Consult ["Environment Variable & Secrets"](#environment-variables--secrets) for more available options.
40+
This provides the ability to perform a different workflow for different branches/environments. Consult ["Environment Variable & Secrets"](#environment-variables--secrets) for more available options.
4141

42-
4. Git push your site GitHub repo. The action will do the rest!
42+
4. Git push your site GitHub repo. The action will do the rest!
4343

44-
View your actions progress and logs by navigating to the "Actions" tab in your repo.
44+
View your actions progress and logs by navigating to the "Actions" tab in your repo.
4545

4646
## Example GitHub Action workflow
4747

@@ -55,13 +55,13 @@ on:
5555
- main
5656
jobs:
5757
build:
58-
runs-on: ubuntu-latest
59-
steps:
58+
runs-on: ubuntu-latest
59+
steps:
6060
- uses: actions/checkout@v2
6161
- name: GitHub Action Deploy to WP Engine
6262
uses: wpengine/[email protected]
6363
with:
64-
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
64+
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
6565
WPE_ENV: <your_install_name_here>
6666
```
6767
@@ -75,14 +75,14 @@ on:
7575
- main
7676
jobs:
7777
build:
78-
runs-on: ubuntu-latest
79-
steps:
78+
runs-on: ubuntu-latest
79+
steps:
8080
- uses: actions/checkout@v2
8181
- name: GitHub Action Deploy to WP Engine
8282
uses: wpengine/[email protected]
8383
with:
84-
# Deploy vars
85-
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
84+
# Deploy vars
85+
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
8686
WPE_ENV: <your_install_name_here>
8787
# Deploy Options
8888
SRC_PATH: "wp-content/themes/genesis-child-theme/"
@@ -109,7 +109,7 @@ jobs:
109109
| `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. |
110110
| `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. |
111111
| `PHP_LINT` | bool | Set to TRUE to execute a php lint on your branch pre-deployment. Default is `FALSE`. |
112-
| `FLAGS` | string | Set optional rsync flags such as `--delete` or `--exclude-from`. The example is excluding paths specified in a `.deployignore` file in the root of the repo. This action defaults to a non-destructive deploy using the flags in the example above. |
112+
| `FLAGS` | string | Set optional rsync flags such as `--delete` or `--exclude-from`. The example is excluding paths specified in a `.deployignore` file in the root of the repo. This action defaults to a non-destructive deploy using the flags in the example above. <br /><br />_Caution: Setting custom rsync flags replaces the default flags provided by this action. Consider also adding the `-azvr` flags as needed.<br /> `-a` preserves symbolic links, timestamps, user permissions and ownership.<br /> `-z` is for compression <br /> `-v` is for verbose output<br /> `-r` is for recursive directory scanning_|
113113
| `SCRIPT` | string | Remote bash file to execute post-deploy. This can include WP_CLI commands for example. Path is relative to the WP root and file executes on remote. This file can be included in your repo, or be a persistent file that lives on your server. |
114114
| `CACHE_CLEAR` | bool | Optionally clear cache post deploy. This takes a few seconds. Default is TRUE. |
115115

@@ -119,4 +119,4 @@ jobs:
119119
* [Defining environment variables in GitHub Actions](https://docs.github.com/en/actions/reference/environment-variables)
120120
* [Storing secrets in GitHub repositories](https://docs.github.com/en/actions/reference/encrypted-secrets)
121121
* It is recommended to leverage one of [WP Engine's .gitignore templates.](https://wpengine.com/support/git/#Add_gitignore)
122-
* This action excludes several files and directories from the deploy by default. See the [exclude.txt](https://github.com/wpengine/github-action-wpe-site-deploy/blob/main/exclude.txt) for reference.
122+
* This action excludes several files and directories from the deploy by default. See the [exclude.txt](https://github.com/wpengine/github-action-wpe-site-deploy/blob/main/exclude.txt) for reference.

0 commit comments

Comments
 (0)