publish: Add a deploy script a-la Tom

generated from commit cfed580c24c6de684391a1fb373f023d53d2dc9b