build and deploy packages