From 1eac71a1be6882b14a52d2ce22a10f5a2b7c3f12 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 09:21:40 +0300 Subject: [PATCH 1/9] Deploy to dev via workflow actions --- .github/workflows/deploy-to-dev.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/deploy-to-dev.yml diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml new file mode 100644 index 00000000..ab6cd4bc --- /dev/null +++ b/.github/workflows/deploy-to-dev.yml @@ -0,0 +1,15 @@ +name: Deploy to WP Engine +on: + push: + branches: + - feature/setup-development-environment +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: + WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} + WPE_ENV: academyafridev From c7049f6e895524592e3a3ead75f5f7e0732635e8 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 09:56:07 +0300 Subject: [PATCH 2/9] Debug deploy --- .github/workflows/deploy-to-dev.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index ab6cd4bc..51ddcb3a 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -13,3 +13,5 @@ jobs: with: WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} WPE_ENV: academyafridev + SRC_PATH: "wp-content/" + REMOTE_PATH: "wp-content/" From 2876c2676aaa1d63a7934441c933d0fa28b897d1 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 10:36:59 +0300 Subject: [PATCH 3/9] change remote path --- .github/workflows/deploy-to-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index 51ddcb3a..b5f38da7 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -14,4 +14,4 @@ jobs: WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} WPE_ENV: academyafridev SRC_PATH: "wp-content/" - REMOTE_PATH: "wp-content/" + REMOTE_PATH: "/home/wpe-user/sites/academyafridev/wp-content/" From bf9c8a154f76fcbeb9c7cf5051ac7e0d3406bd56 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 10:40:42 +0300 Subject: [PATCH 4/9] Test deploy --- .github/workflows/deploy-to-dev.yml | 2 +- wp-content/koech.php | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 wp-content/koech.php diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index b5f38da7..51ddcb3a 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -14,4 +14,4 @@ jobs: WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} WPE_ENV: academyafridev SRC_PATH: "wp-content/" - REMOTE_PATH: "/home/wpe-user/sites/academyafridev/wp-content/" + REMOTE_PATH: "wp-content/" diff --git a/wp-content/koech.php b/wp-content/koech.php new file mode 100644 index 00000000..e69de29b From efb30d4953272d4cc171e5a1a9b431c4d8d46e32 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 10:53:11 +0300 Subject: [PATCH 5/9] Deploy yo dev --- .github/workflows/deploy-to-dev.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index 51ddcb3a..72f98fee 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -12,6 +12,7 @@ jobs: uses: wpengine/github-action-wpe-site-deploy@v3 with: WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} - WPE_ENV: academyafridev + DEV_ENV: academyafridev SRC_PATH: "wp-content/" REMOTE_PATH: "wp-content/" + FLAGS: "--delete -v" From 10a437c430397a65e4d4af46738c6f77dfa837be Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 10:55:17 +0300 Subject: [PATCH 6/9] Test deploy --- .github/workflows/deploy-to-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index 72f98fee..687e0ff4 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -15,4 +15,4 @@ jobs: DEV_ENV: academyafridev SRC_PATH: "wp-content/" REMOTE_PATH: "wp-content/" - FLAGS: "--delete -v" + FLAGS: "--delete -r -v" From 5a88b7755f4090a4f1dfa425d17559d45a600be4 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 10:59:34 +0300 Subject: [PATCH 7/9] Set up development environment --- .github/workflows/deploy-to-dev.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index 687e0ff4..041a4f76 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -15,4 +15,3 @@ jobs: DEV_ENV: academyafridev SRC_PATH: "wp-content/" REMOTE_PATH: "wp-content/" - FLAGS: "--delete -r -v" From 61bf553e4a64e768e7d33ac1b15fc679e9434be9 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 11:05:44 +0300 Subject: [PATCH 8/9] Remove test file --- wp-content/koech.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 wp-content/koech.php diff --git a/wp-content/koech.php b/wp-content/koech.php deleted file mode 100644 index e69de29b..00000000 From 294cc07e0268ab4ca79b8310e820c9df18bd1299 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Thu, 26 Oct 2023 11:13:19 +0300 Subject: [PATCH 9/9] Deploy to dev env --- .github/workflows/deploy-to-dev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-to-dev.yml b/.github/workflows/deploy-to-dev.yml index 041a4f76..51ddcb3a 100644 --- a/.github/workflows/deploy-to-dev.yml +++ b/.github/workflows/deploy-to-dev.yml @@ -12,6 +12,6 @@ jobs: uses: wpengine/github-action-wpe-site-deploy@v3 with: WPE_SSHG_KEY_PRIVATE: ${{ secrets.WPE_SSHG_KEY_PRIVATE }} - DEV_ENV: academyafridev + WPE_ENV: academyafridev SRC_PATH: "wp-content/" REMOTE_PATH: "wp-content/"