Make use of web hooks that are triggered by pushing code to a repository and have your application taking care of upgrading itself.
>= 3.1
Daniel Kraus