deploy: run before/after_deploy in `run`

The current implementation does not run before_deploy and after_deploy
if there are no conditons. Moving the invocations to `run` to make sure
they are always run.