Skip to content

Commit bb89d72

Browse files
authored
Update README.md
1 parent 708be09 commit bb89d72

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

README.md

+20-15
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,26 @@ An action to deploy your repository to a **[WP Engine](https://wpengine.com)** s
55
## Example GitHub Action workflow
66

77
```
8-
workflow "Deploy to WP Engine" {
9-
on = "push"
10-
resolves = ["Git Push to Production"]
11-
}
12-
13-
action "Git Push to Production" {
14-
uses = "jovrtn/github-action-wpengine-git-deploy@master"
15-
env = {
16-
WPENGINE_ENVIRONMENT_NAME = "my-cool-site-production"
17-
}
18-
secrets = [
19-
"WPENGINE_SSH_KEY_PRIVATE",
20-
"WPENGINE_SSH_KEY_PUBLIC"
21-
]
22-
}
8+
name: CI
9+
10+
on:
11+
push:
12+
branches: [ master ]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout Repo
20+
uses: actions/checkout@v1
21+
22+
- name: Deploy to WP-Engine
23+
uses: PhinCo/github-action-wpengine-git-deploy@7 # Note, the `@7` is the release name
24+
env:
25+
WPENGINE_ENVIRONMENT_NAME: [your wpengine environement name]
26+
WPENGINE_SSH_KEY_PRIVATE: ${{ secrets.WPENGINE_SSH_KEY_PRIVATE }} # Configured in Repo/Settings/Secrets
27+
WPENGINE_SSH_KEY_PUBLIC: ${{ secrets.WPENGINE_SSH_KEY_PUBLIC }} # Configured in Repo/Settings/Secrets
2328
```
2429

2530
## Environment Variables & Secrets

0 commit comments

Comments
 (0)