Updated publish script