Skip to content

Commit 3148ae5

Browse files
committed
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.
1 parent 28573af commit 3148ae5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy.pantheon.yml

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ jobs:
5959
rm -rf prod/vendor prod/wp-content/plugins prod/wp-content/themes/sparkpress
6060
cp -r vendor prod
6161
cp -r theme prod/wp-content/themes/sparkpress
62+
# create plugins directory if it doesn't exist
63+
mkdir -p wp-content/plugins
6264
cp -r wp-content/plugins prod/wp-content/plugins
6365
6466
- name: Deploy to Pantheon

0 commit comments

Comments
 (0)