Split compile and deploy scripts