add publish task.