Move GitHub Desktop to your Applications (Mac) or Programs (Windows) folder.
Launch GitHub Desktop.
GitHub Desktop app -> Preferences -> Accounts -> log in with your GitHub account information.
3. Back to github.com: create a "repository" (the online space that will house your website files on github.com)
Click Create Repository, or navigate to Your Repositories in upper right-hand menu and click New.
Enter a name for your new repository in the following format: yourgithubusername.github.io. You must name your first gh-pages site this way to make it work as a website! (After this, you can name additional sites anything you like, but no numbers and no spaces!)
Click "Create".
4. Link your new repository to the Github Desktop app
In your new repo page, click Set Up in Desktop.
Desktop app will launch and prompt you to clone the repo into the app; click Clone.
A folder called Github will appear somewhere on your computer, with a folder with your repository name inside it.
Locate that folder and move on to the next slide.
5a. publish your website
Review your project's directory/file structure.
Make sure your home page is called index.html (all lower case) and is on the top level of the directory (not nested within a subfolder).
Make sure there are no spaces in any file or folder names. This actually matters a lot.
Open the Github folder that was auto-created on your computer. You should find a directory with the name of the repository you just created.
Go back to and open your project's directory. Move the files inside it (or copies of the files inside it) into the directory with the name of the repo you just created. DO NOT include the top-level directory/folder.
Check for the files to appear under Changes on GitHub Desktop.
5b. Publish your website
Enter a note ("first commit" is good), then click Commit to Master.
Click Publish (upper right-hand side of Desktop app).
Check your repo on github.com for the changes.
Back to your repo on github.com. Click Settings.
In the left-hand Settings menu, click Pages.
In the dropdown menu under the heading Source, select
"main" and click Save.
You should see a message that says "Your site is ready to be published at yourusername.github.io" or "Your site is published at yourusername.github.io". If the former, wait till it changes to the latter (be patient, this may take a minute). If the latter, that is your URL, and your site is live there.
To edit the site, simply open your project from your Github folder, make your changes, return to Github Desktop, and commit and publish your changes as described above. (Note that changes may take some time to update to the live site.)