Deserve can be followed by the infinitive, by the gerund or by a noun. The usage of the gerund with deserve is not very common. It is mainly used with passive constructions or where there is a passive meaning.
- Your proposals deserve to be considered in detail.
- These ideas deserve discussing.
- You deserve some ice cream.