Deploying link to Github from Visual Studio

Hi everyone,
I have pushed the folder to the repository, but the link is not working. It just shows 404 page. How would I fix this to get this working?
Page not found · GitHub Pages (cyoscar.github.io)

Thank you.

Did you check the docs?

Thanks for the link. I found out I needed to put it as index.html. When I renamed it and made push commit for the changes, it shows fail to build. The directory and branch look right.
CYOscar/CSS-Reference-Guide (github.com)

Thank you

1 Like

I tried deploying on my github account and it built OK. SO I think the HTML/CSS code is fine and maybe it’s a problem with the settings for GitHub pages?

Under the Actions tab, do you have the default branch set to the same one on your local computer?

Have you tried to build a few times too? Sometimes I find it can be a bit glitchy, so worth trying a few times to make sure the error is always the same.

Yes. on the main branch. This is what I did on the computer:
git remote add origin GitHub - CYOscar/CSS-Reference-Guide
git branch -M main
git push -u origin main

Before these three, I added a commit.

I took a look at the errors in the build and it has this:

Maybe removing the folder called ‘CSSReferenceGuide’ could help? I couldn’t see that it was used anywhere, is that correct?

Thank you for helping me with this! I removed it and fixed it. :smile:

1 Like