Refine deploy workflow

`list = case ...` is better