Update publishTask