You have to open github.com
You have to login to github or create a new github account
Enter the detail like the title and description. It is defaultly public you can choose your option public or private and please check the readme file
Open imageAfter creating a repository click on add file and select upload a file or create a new file
Open imageIn the setting there is a option name(Pages settings now has its own dedicated tab! Check it out here!) in the bottom of the github setting. click on Check it out here!
Open imageThere will be two button branch and save click on branch and select main option if select main it will show to the /root is defaultly click on save. After some seconds there will be a dialog box that tells your site is ready to publish on https://user_name.github.io/project_name click on that And you site will be ready in 1 minutes or 2 minute
Open imageCongratulation you have deployed a website in github