Divided deployment routine into separate build and deploy scripts