-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.03 KB
/
main.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
name: Deploy PROD
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Up Environment Variables
run: |
cat > wp-content/plugins/mozilla-salesforce-sync/_config.php << EOF
<?php
define('AUTH_URL', "${{ secrets.AUTH_URL }}");
define('SYNC_URL', "${{ secrets.SYNC_URL }}");
define('CLIENT_ID', "${{ secrets.CLIENT_ID }}");
define('CLIENT_SECRET', "${{ secrets.CLIENT_SECRET }}");
define('USERNAME', "${{ secrets.USERNAME }}");
define('PASSWORD', "${{ secrets.PASSWORD }}");
define('SECURITY_TOKEN', "${{ secrets.SECURITY_TOKEN }}");
EOF
cat wp-content/plugins/mozilla-salesforce-sync/_config.php
- name: GitHub Action Deploy to WP Engine
uses: wpengine/github-action-wpe-site-deploy@v3
with:
WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }}
WPE_ENV: aiidb
SCRIPT: setenv.sh