PY-1.4-BP5-MQ50

Our Goal: Turn On GitHub Pages

In this lesson, you will learn how to turn on GitHub Pages for your game project. This is like flipping a switch to make your game appear on the internet. You will go to your GitHub project's settings and tell it to show your game from the main branch.

Get Ready to Turn On Pages

Before you turn on GitHub Pages, go to your game project on GitHub.com. Find the 'Settings' tab. This is where you will change the settings to make your game appear on the internet.

Turn On GitHub Pages

Now, you will turn on GitHub Pages for your game. Follow these steps:

  1. Go to your game project on GitHub.com.
  2. Click on the 'Settings' tab.
  3. On the left side, find and click on 'Pages'.
  4. Look for 'Build and deployment'. Choose 'Deploy from a branch'.
  5. Under 'Branch', choose the 'main' branch. This is where your game files are.
  6. For the folder, choose '/ (root)'. This means GitHub will look for your game files in the main folder of your project.
  7. Click the 'Save' button.

GitHub will now start building your game website!

Check Your Work Again

You've turned on GitHub Pages! Now, let's check to make sure it's set up correctly.

Go back to the 'Settings' -> 'Pages' section of your GitHub project.

What you should see:

āœ… It should say 'Deploy from a branch'. āœ… The branch should be 'main'. āœ… The folder should be '/ (root)'. āœ… You should see a message that your site is being built or is already live with a web address.

If you see these things, you did a great job!

Documentation

Documentation not available for PY-1.4-BP5.