Move publishing action to xblock handler.
Move publishing action to xblock handler.