moved publish to before_deploy