Created
November 6, 2020 17:33
-
-
Save crstauf/636bca7a363f81fb220ea59b2acb917c to your computer and use it in GitHub Desktop.
GitHub Action to deploy production branch to WP Engine via git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to WP Engine | |
on: | |
push: | |
branches: [ production ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: WP Engine deployment via git | |
uses: jovrtn/[email protected] | |
env: | |
WPENGINE_ENVIRONMENT_NAME: ${{ secrets.WPENGINE_ENVIRONMENT_NAME }} | |
LOCAL_BRANCH: production | |
WPENGINE_SSH_KEY_PRIVATE: ${{ secrets.WPENGINE_SSH_KEY_PRIVATE }} | |
WPENGINE_SSH_KEY_PUBLIC: ${{ secrets.WPENGINE_SSH_KEY_PUBLIC }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment