Updated publish script.