-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1.26 KB
/
production.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Deploy to WP Engine Production environment
# https://wpengine.com/support/environments/#About_Environments
name: Deploy to production
on:
push:
branches:
- main
jobs:
Deploy-to-WP-Engine-Production:
runs-on: ubuntu-latest
steps:
- run: echo "Preparing to deploy to WP Engine production"
- uses: actions/checkout@v3
- name: GitHub Action Deploy to WP Engine
uses: wpengine/github-action-wpe-site-deploy@v3
with:
# Deploy vars
# https://github.com/wpengine/github-action-wpe-site-deploy?tab=readme-ov-file#environment-variables--secrets
# The private RSA key you will save in the Github Secrets
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
# Destination to deploy to WPE
# Change to your environment name
WPE_ENV: devrelghaction
# Deploy options
# An optional destination directory to deploy
# to other than the WordPress root.
REMOTE_PATH: "wp-content/"
# Optional flags for the deployment
FLAGS: -azvr --inplace --delete --include-from rsync-config/includes.txt --exclude=".*" --exclude-from rsync-config/excludes.txt
# File containing custom scripts run after the rsync
SCRIPT: wp-content/bin/post-deploy.sh