TH: Only deploy the installation on rebuilddep jobs

When this is just a check job, the code should not be propagated to a
shared depot of course. That should only be limited to when a new
version is actually pushed to the target branch of the repo.