Created
June 5, 2024 18:07
-
-
Save okadots/7804d0ee79165ff53066770ea0170e97 to your computer and use it in GitHub Desktop.
This is a workflow to compile and deploy to WPEngine Production using BitBucket
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
image: node:{{VERSION OF NODE NEEDED FOR PROJECT}} | |
pipelines: | |
branches: | |
staging: | |
- step: | |
name: Staging Deploy to WPEngine | |
deployment: staging | |
script: | |
- echo "Installing packages" | |
- npm install | |
- echo "Compiling assets" | |
- npm run build | |
- rm -Rf node_modules | |
- echo "Deploying to staging environment" | |
- pipe: wpengine/wpe-site-deploy:v1 | |
variables: | |
WPE_SSHG_KEY_PRIVATE: $WPE_SSHG_KEY_PRIVATE | |
WPE_ENV: '{{STAGING ENV NAME}}' | |
SRC_PATH: {{SOURCE PATH TO THEME FOLDER}} | |
REMOTE_PATH: {{REMOTE PATH TO THEME FOLDER}} | |
main: | |
- step: | |
name: PRODUCTION Deploy to WPEngine | |
deployment: production | |
script: | |
- echo "Installing packages" | |
- npm install | |
- echo "Compiling assets" | |
- npm run build | |
- rm -Rf node_modules | |
- echo "Deploying to PRODUCTION environment" | |
- pipe: wpengine/wpe-site-deploy:v1 | |
variables: | |
WPE_SSHG_KEY_PRIVATE: $WPE_SSHG_KEY_PRIVATE | |
WPE_ENV: '{{PRODUCTION ENV NAME}}' | |
SRC_PATH: {{SOURCE PATH TO THEME FOLDER}} | |
REMOTE_PATH: {{REMOTE PATH TO THEME FOLDER}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment