Conditional Deployment not working

Hi guys, I have this travis file and somehow my conditional deployment is not working - it starts the deployment job on every commit.

I want it to only trigger on tagged commits on the ‘development’ branch.

What am I doing wrong?

Here is an example build.

EDIT:
It didn’t work because the deploy field was indented wrongely … what I also didn’t know was that the job will always appear even if the ‘on’ condition doesn’t apply.

In case you want the job only to show up when it really is run then use the if field like so

Your deployment configuration still needs some work. Namely, it needs to be a single command, as described in https://docs.travis-ci.com/user/deployment/script.