From 3148ae51103fbeb44d49910ba3a442ffbcfa6c2e Mon Sep 17 00:00:00 2001 From: Jon Oliver Date: Tue, 26 Sep 2023 17:21:08 -0400 Subject: [PATCH] fix: force create plugin folder on pantheon deploy If no WordPress plugins are installed through composer, wp-content/plugins does not exist for build. To prevent build from failing, force creation of the folder if it doesn't exist. --- .github/workflows/deploy.pantheon.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.pantheon.yml b/.github/workflows/deploy.pantheon.yml index 5d38ece..5174618 100644 --- a/.github/workflows/deploy.pantheon.yml +++ b/.github/workflows/deploy.pantheon.yml @@ -59,6 +59,8 @@ jobs: rm -rf prod/vendor prod/wp-content/plugins prod/wp-content/themes/sparkpress cp -r vendor prod cp -r theme prod/wp-content/themes/sparkpress + # create plugins directory if it doesn't exist + mkdir -p wp-content/plugins cp -r wp-content/plugins prod/wp-content/plugins - name: Deploy to Pantheon