Do both- but not the opposite

Show your good deeds and pray before men so they may "praise your father in heaven"
- Matt 5:16

Do your good deeds and pray in secret "so your father will see what is done and reward you"
- Matt 6:3,4