To publish/unpublish course, click on the Manage Course button of the course and then click on the Publish Course button present at the top right corner. By default course will be unpublish so you will see Publish Course button, once course is published button will be change to Unpublish Course.

 publish course image