make sure stop deploy process if build errors.

cc @clkao 

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>