update the publish state.