sample publishing script