Since the Bible has already been mentioned, here is one key word to (mostly) put to rest this idea from a Christian perspective:
"But someone will say, “You have faith, and I have works.” Show me your faith without your works, and I will show you my faith by my works. " James 2.18.
I think from this (and the context) we can conclude that the Bible is very much in favour of putting in the actual work.
That said, a concept that I was introduced to when I was younger is that of "dead works", a concept that is harder to explain in a technical text only forum, but which sounds very much like what you describe based on the explanations I received: "how much more shall the blood of Christ, who through the eternal Spirit offered Himself without spot to God, cleanse your conscience from dead works to serve the living God?" Hebrews 9.14.
Shortly summarized as far as I remember and understand "dead works" was explained to me as things you will do just because you feel you "have to" to please your conscience, not because of a drive inside you to do what is good and right.
Personally I think it's ok to do altruistic things, and conclude from the evidence that you're an altruistic person. It is the most simple and straightforward explanation, and Occam's Razor is as sharp as ever. And given the way cognitive dissonance works, even a person who starts out as ego-driven will likely become more altruistic over time, if they do altruistic things with no concrete reward.
It is no judgement on the act itself. Of course charity with self promotion is better than no charity in most cases.