Updated primary publish hook for Mari