Equivalent of before_deploy

Travis has a before_deploy section to execute commands before the deployment section. I don’t see an equivalent on CircleCi. There is no pre in deployment.

How can I go about working around this?