fix deploy step

adjust env set order.