publish script is not being executed