split deploy into build-pkg and deploy