Skip to content

Commit

Permalink
✨ add build-after placeholder (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs authored Mar 28, 2022
1 parent 6af5fbe commit fa082f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 11 additions & 0 deletions deploy-hooks/build-after.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
4 changes: 2 additions & 2 deletions deploy-hooks/build-before.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions roles/deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fa082f2

Please sign in to comment.