move deploy to after success