compress and deploy