example publishing script