I have similar requirement where i have to publish the page to preview url but the replication access is denied. So, it is executing another workflow i.e request for activation to preview the page. I want to write a custom code to publish the page to preview. Anyone has any solution for this.