Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github page build failure

Tags:

github-pages

I am creating my website on github page, I am not using jekyll or any of its kind, it's just pure javascript and html css. Why sometime it gives page build failure? what it is building then?

like image 577
Blake Avatar asked Aug 12 '14 10:08

Blake


People also ask

Why my GitHub Pages is not working?

Solution: Verify the publishing source and published URL from your repository's settings tab. Double check that you are using the correct URL by visiting your repository's Settings, and scrolling down to the GitHub Pages section. You should see the URL where your site is published.

How long does GitHub Pages take to build?

Note: It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub. If you don't see your GitHub Pages site changes reflected in your browser after an hour, see "About Jekyll build errors for GitHub Pages sites."

Is there a limit to GitHub Pages?

Published GitHub Pages sites may be no larger than 1 GB. GitHub Pages sites have a soft bandwidth limit of 100 GB per month. GitHub Pages sites have a soft limit of 10 builds per hour. This limit does not apply if you build and publish your site with a custom GitHub Actions workflow.

How do I see GitHub errors?

To find potential build errors, you can check the workflow run for your GitHub Pages site by reviewing your repository's workflow runs. For more information, see "Viewing workflow run history." For more information about how to re-run the workflow in case of an error, see "Re-running workflows and jobs."


2 Answers

By default in a github repository, the gh-pages branch is build with Jekyll.

If you have underscored folders (eg: _myfolder) Jekyll tries to build. If they are not real Jekyll folders, this breaks the build.

If you don't want to process you html/js code, add a .nojekyll file at the root of your code. Github will then not try to build, it will just serve your pages as is.

More info in Github pages doc

like image 112
David Jacquel Avatar answered Oct 30 '22 20:10

David Jacquel


I was facing the same error. I was using only HTML, CSS and JS just like you. Also adding .nojekyll made no changes, I was still getting the same error.

Then I figured out the error in my code editor(VS code). VS code shows if there any problems in the code only the bottom left corner.

The thing that caused error was that I was missing a colon(:) in my css code.

So check your code once more if it this kind of minor issues.

like image 40
Dhiraj Narsinghani Avatar answered Oct 30 '22 20:10

Dhiraj Narsinghani