edit publish script