(#1693) - clean up publish script