Skip to content

Commit

Permalink
fix: force create plugin folder on pantheon deploy
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonoliver committed Sep 26, 2023
1 parent 28573af commit 3148ae5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.pantheon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3148ae5

Please sign in to comment.