github pages deploying redirects to the repository

Viewed 208

i am trying to deploy a dummy website following the guide shown on github pages website here: https://pages.github.com/

but it sends me to my repository. whats going on ?

i am trying to deploy a react website and I followed this guide: https://create-react-app.dev/docs/deployment/ under "github pages" section and this also redirects to the github repository page.

1 Answers

Make sure to consult the right URL, depending on your GitHub pages repository

There are three types of GitHub Pages sites: project, user, and organization.

  • Project sites are connected to a specific project hosted on GitHub, such as a JavaScript library or a recipe collection.
  • User and organization sites are connected to a specific GitHub account.

And:

  • To publish a user site, you must create a repository owned by your user account that's named <user>.github.io.
  • To publish an organization site, you must create a repository owned by an organization that's named <organization>.github.io. Unless you're using a custom domain, user and organization sites are available at http(s)://<username>.github.io or http(s)://<organization>.github.io.

The source files for a project site are stored in the same repository as their project. Unless you're using a custom domain, project sites are available at http(s)://<user>.github.io/<repository> or http(s)://<organization>.github.io/<repository>.

Related