fix --deploy and --publish flags to `drone build`
Merge pull request #745 from shawnzhu/deploy

`drone build --deploy` doesn't work as expected