added build and publish scripts