In the Sermon on the Mount, Jesus told his disciples,
You are the light of the world. A city set on a hill cannot be hidden. Nor do people light a lamp and put it under a basket, but on a stand, and it gives light to all in the house. In the same way, let your light shine before others, so that they may see your good works and give glory to your Father who is in heaven.
Good works in the true Christian are designed by God to blind people from seeing me doing the work. At the the same time, God designs the works to enable people to see his glory.
A person whom God is drawing to himself will see a good work in me and say, “Wow. I know James. He’s not that great. He wouldn’t — couldn’t — do that on his own. It must be something greater than himself. Something more powerful, more gracious, more loving. It can only be God.”