debug publish script