That can work. There’s another solution you could do as well. You could define your hook file like this:
deploy_build_after: "hooks/{{ site }}/deploy-hooks/build-after.yml"
Then you could create a directory for each site name and put a different build-after.yml
file in there.