You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
GitHub Action for WP Engine Git Deployment
0.1.0
Pre-release
An action to deploy your repository to a WP Engine site via git. Read more about WP Engine's git deployment support.
workflow "Deploy to WP Engine" {
on = "push"
resolves = ["Git Push to Production"]
}
action "Git Push to Production" {
uses = "jovrtn/github-action-wpengine-deploy@master"
env = {
WPENGINE_SITE = "my-cool-wordpress-site"
WPENGINE_ENVIRONMENT = "production"
}
secrets = [
"WPENGINE_SSH_KEY_PRIVATE",
"WPENGINE_SSH_KEY_PUBLIC"
]
}
Name | Type | Usage |
---|---|---|
WPENGINE_SITE |
Environment Variable | The name of the WP Engine site you want to deploy to. |
WPENGINE_SSH_KEY_PRIVATE |
Secret | Private SSH key of your WP Engine git deploy user. See below for SSH key usage. |
WPENGINE_SSH_KEY_PUBLIC |
Secret | Public SSH key of your WP Engine git deploy user. See below for SSH key usage. |
Name | Type | Usage |
---|---|---|
WPENGINE_ENVIRONMENT |
Environment Variable | The site's environment you want to deploy to, e.g. production, staging, development. Defaults to production |
- Generate a new SSH key pair as a special deploy key. The simplest method is to generate a key pair with a blank passphrase, which creates an unencrypted private key.
- Store your public and private keys in your GitHub repository as new 'Secrets' (under your repository settings), using the names
WPENGINE_SSH_KEY_PRIVATE
andWPENGINE_SSH_KEY_PUBLIC
respectively. In theory, this replaces the need for encryption on the key itself, since GitHub repository secrets are encrypted by default. - Add the public key to your WP Engine production environment.
- Per the WP Engine documentation, it takes about 30-45 minutes for the new SSH key to become active.