Do them publicly
Matthew 5:16 View context
Let your light so shine before men, that they may see your good works and glorify your Father in heaven.
Do them privately
Matthew 6:3-4 View context
But when you do a charitable deed, do not let your left hand know what your right hand is doing, that your charitable deed may be in secret; and your Father who sees in secret will Himself reward you openly.