Updates the publish script