Move "deploy" at the end of the build