From fa082f263b6f398258547df370624809d32c9af9 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Mon, 28 Mar 2022 08:40:35 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20add=20`build-after`=20placeholder?= =?UTF-8?q?=20(#1377)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy-hooks/build-after.yml | 11 +++++++++++ deploy-hooks/build-before.yml | 4 ++-- roles/deploy/defaults/main.yml | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 deploy-hooks/build-after.yml diff --git a/deploy-hooks/build-after.yml b/deploy-hooks/build-after.yml new file mode 100644 index 0000000000..9cce3a2ac3 --- /dev/null +++ b/deploy-hooks/build-after.yml @@ -0,0 +1,11 @@ +# Placeholder `deploy_build_after` hook +# +# ⚠️ This example assumes your theme is using Sage 10 +# +# Uncomment the lines below if you are using Sage 10 +# +# --- +# - name: Run Acorn optimize +# command: wp acorn optimize +# args: +# chdir: "{{ deploy_helper.new_release_path }}" diff --git a/deploy-hooks/build-before.yml b/deploy-hooks/build-before.yml index 87951f4735..78003bd92c 100644 --- a/deploy-hooks/build-before.yml +++ b/deploy-hooks/build-before.yml @@ -2,9 +2,9 @@ # host machine and then copying the files to the remote server # # ⚠️ This example assumes your theme is using Sage 10 -# An example for themes built with Sage 8 can be found at: https://git.io/vdgUt # -# Uncomment the lines below and replace `sage` with your theme folder +# Uncomment the lines below if you are using Sage 10 +# and replace `sage` with your theme folder # # --- # - name: Install npm dependencies diff --git a/roles/deploy/defaults/main.yml b/roles/deploy/defaults/main.yml index 597fa036b2..50b91e6b8b 100644 --- a/roles/deploy/defaults/main.yml +++ b/roles/deploy/defaults/main.yml @@ -67,6 +67,7 @@ deploy_build_before: deploy_build_after: - "{{ playbook_dir }}/roles/deploy/hooks/build-after.yml" + - "{{ playbook_dir }}/deploy-hooks/build-after.yml" # - "{{ playbook_dir }}/deploy-hooks/sites/{{ site }}-build-after.yml" deploy_finalize_before: