Skip to content

Instantly share code, notes, and snippets.

@colorful-tones
Last active August 13, 2023 09:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save colorful-tones/bad9c34440dab1f37f0f90122fc04184 to your computer and use it in GitHub Desktop.
Save colorful-tones/bad9c34440dab1f37f0f90122fc04184 to your computer and use it in GitHub Desktop.
name: Deploy to a WP Engine Development environment
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: GitHub Action Deploy to WP Engine
uses: wpengine/github-action-wpe-site-deploy@v3
with:
REMOTE_PATH: "wp-content/"
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
WPE_ENV: <your_install_name_here>
name: Deploy to a WP Engine Production environment
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: GitHub Action Deploy to WP Engine
uses: wpengine/github-action-wpe-site-deploy@v3
with:
REMOTE_PATH: "wp-content/"
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
WPE_ENV: <your_install_name_here>
name: Deploy to a WP Engine Staging environment
on:
push:
branches:
- stage
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: GitHub Action Deploy to WP Engine
uses: wpengine/github-action-wpe-site-deploy@v3
with:
REMOTE_PATH: "wp-content/"
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
WPE_ENV: <your_install_name_here>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment