GitHub Pages deployment is not working #113276
Select Topic AreaQuestion BodyToday I created a new public repository and added the code of my site to it. It has If a link to the repository is needed, I am ready to provide it. |
Replies: 4 comments 1 reply
|
How to successfully deploy your website on GitHub page, ensure you follow the below steps:
I strongly recommend that you add a deployment protection rule so that only the default branch can deploy to this environment. Make sure that all your file structure are well set, and if there is anything to configure, let's say you are using phyton (Django) or NodeJs for your project, make sure your settings are well configured prior to deployment. Good luck. |
I don't fully understand this point. Do you mean this? |
|
Make sure GitHub Pages is set up to show your site from the right place. Your site's main file, index.html, is directly in the main part of your project, which is called the main branch. Check this setup in the "Pages" area of your project settings. There, you can see if your site is coming from the main branch and the top level, or root, of your project. |
|
After I made changes to the repository using the |
|
Hi, Guys, I am facing the same issue with the deployment, and set everything right and pushed the local repo along with the whole project code, and branch set to main and everything is set in github pages, there is no error and the deployment link is not working. |

After I made changes to the repository using the
git pushcommand, the problem disappeared by itself.