Help with hosting on GitHub Pages

Hello, I have a problem with uploading a blog to Github and I follow all the steps but when I upload it in the build part of Github I get build with Jekyll with a complete error and I don’t know how to fix it.

You are more likely to receive a prompt and accurate response if you post a link to your project’s Git repository.

See Requesting Help.

Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.

There is my repository, locally it works wonderfully but when I upload it is when it shows an error and I don’t get the blog

Follow these instructions for hosting with GitHub Pages:

I got lost in step 5 and step 6, I just created a file called hugo.yaml and in the initial section of my repository I added .github/workflows/hugo.yaml

Then try again. Those instructions are bullet proof.

Please confirm if I did it right

You didn’t.


then I create the folders too

Perhaps there’s a language barrier here, but you’re not even close.

You’ve created hugo.yaml in the root of your repository instead of placing it in the workflows folder.

how about there

Well, your site’s up:

You can remove the .nojekyll file and the public directory from your repository.

git rm .nojekyll
git rm -rf public
touch .gitignore

Then put this in the .gitignore file:


Thanks for the help, for the moment I’m going to focus on learning everything I did after modifying the repository

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.