Check that the file name and path match what GitHub Pages is configured to serve. For a user site, index.html in the repository root is served at the root URL. For a project site with /docs folder, the file must be inside /docs. Also check Settings → Pages shows no build error.