To publish/unpublish the 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 the course is published button will be changed to Unpublish Course.