moved deploy script to after success