Hello @Yahyakhan472. This is a matter or personal choice, but both have pros and cons. Publishing a course for free means more potential leads for your paid courses, but your star rating might suffer because more students will have access to reviewing content they haven't paid for.
I only recommend shifting a course from free to paid once, and it may be a good idea to offer a shorter free course that's going to serve as a preview of what your paid content might look like. This is how you warm up cold leads. If you need any more help, feel free to ask away or contact me personally!
- Filip is founder of www.teachermethod.com, 1-on-1 mentorship program dedicated to teach you how to create and sell exceptional Udemy courses