make sure stop deploy process if build errors.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Merge pull request #120 from appleboy/patch-1

make sure stop deploy process if build errors.