Doing good deeds is not the answer to being obedient to God. Jesus says that if you love Him, keep His commandments. Notice that He does not say that doing random good deeds is the equivalent. God expects us to study the Scripture and follow what He says. Too many Christians are doing good deeds that make them feel good, but it is not necessarily the same as following God’s Word.
From the Bible:
So David assembled all Israel together, from the Shihor of Egypt to the entrance of Hamath, to bring the ark of God from Kiriath-jearim. David and all Israel went up to Baalah, that is, to Kiriath-jearim, which belongs to Judah, to bring up from there the ark of God, the L ord who is enthroned above the cherubim, where His name is called. And they carried the ark of God on a new cart from the house of Abinadab, and Uzza and Ahio drove the cart. David and all Israel were celebrating before God with all their might, with songs and with lyres, harps, tambourines, cymbals, and trumpets. When they came to the threshing floor of Chidon, Uzza put out his hand to hold the ark, because the oxen nearly overturned it. But the anger of the L ord burned against Uzza, so He struck him because he had put out his hand toward the ark; and he died there before God. Then David became angry because of the L ord ’ s outburst against Uzza; and he called that place Perez-uzza as it is to this day. David was afraid of God that day, saying, “How can I bring the ark of God home to me?”
1 Chronicles 13:5-12
https://my.bible.com/bible/2692/1CH.13.5-12