Step 5: Publish to GitHub Pages
Your map works locally. Now publish it.
Make Sure Your Work Is Pushed
You committed and pushed at the end of Steps 2, 3, and 4, so your fork should already be up to date. Double-check the Source Control panel shows no pending changes (or run git status). If anything is uncommitted, commit and push it now before publishing.
Enable GitHub Pages
- Open a new browser tab and go to your fork on GitHub:
github.com/YOUR-USERNAME/intro-to-web-maps - Click Settings → Pages (left sidebar, under "Code and automation")
- Under Build and deployment:
- Source: Deploy from a branch
- Branch: main → / (root)
- Click Save
GitHub starts a Pages build. It takes 1–2 minutes.
Get Your Live URL
After the build completes, the Pages settings page shows a banner with your URL:
https://YOUR-USERNAME.github.io/intro-to-web-maps/
Open it. Your map should load (basemap, icons, popup), all working from GitHub's servers with no Caddy running.
Troubleshooting
Map is blank on Pages but works locally:
- Open the browser console at your Pages URL and look for 404s
- The PMTiles files in
sources/are committed to the repo, so they should be present; check that the filename inaddSourcematches exactly .nojekyllis already committed, so Pages will not try to run Jekyll
Build failed or page not found:
- Check the Actions tab on your fork for the Pages deployment status and any error message