404 after deploying to Github Pages

As the title suggests, I’m presented with a 404 when trying to access my Hugo site on Github pages.

The Hugo quickstart ends with running “hugo -D” which generates the directories “public/” and “resources/” - am I supposed to commit those to my repository and push them to github? Isn’t the github action supposed to build hugo and create those directories with my content?

After the github action executes successfully, should I expect to see those directories when browsing my repo on github?

Hello @Mattt

For Github pages, you need to set the baseURL first. then generate your public file, and push it into another GitHub repository, and then you can config this new repository for the GitHub page.