Use the publish() api from xblock.runtime.Runtime