It is a bad idea to lubricate the tracks of a garage door (and NEVER use WD40 to lubricate ANYTHING!!)
Lubricate the roller/bearings and the hinges with a lithium or silicone spray .... but not the tracks.
5 Garage Door Maintenance Tips from GarageDoorRepair.com