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.
I take this to mean that one way God gets glory is by the church doing good works. This is not the only way, in fact the primary way for a church to be God-glorifying is to be obedient to the Scriptures. If a church is going to be a New Testament church, her primary desire is to be Biblically obedient with the purpose of being God-glorifying.