You may have an inflammation of the eye and/or eyelid. Contact your doctor.
Links:
Blepharitis
Conjunctivitis
Would you like more information about eye conditions that may cause a discharge?