A lot of people trying to gain weight either add almost nothing and wonder why nothing changes, or they go full junk-food free-for-all and feel awful.
The middle path works better: a small surplus, steady protein, and training that gives the extra food somewhere useful to go.