My ex was publicly big on charitable works but privately not a generous or altruistic person at all. It’s all about what makes him look good. Imagine how fragile the ego of the insecure narcissist is, that it depends upon other people praising them for an activity to be “worthwhile” to them.
My guess is, if you separate your H’s words from his actions, you’ll get a clearer picture of his true self.