Apex: add support for deploying upstream only