Create release using curl

When creating a new release using the API, is there a way to attach .md file for description?

I tried to do it using curl and replacing “description” with text from .md file, but it doesn’t work.
Hope for your help, thanks.