moved deploy to be after success