publish by script