GitHub Page does not find my repository files

Hello everyone,
I have a GitHub repository where I pushed some my Arch packages that I would like to use as a repository by using pacman on Arch Linux.
My repository is: https://github.com/Athena-OS/athena-repository

and I followed GitHub official documentation for creating my GitHub page: https://athena-os.github.io/athena-repository and then on the Settings of the repository → Pages, I set “main” as Branch and /root as folder. And I saved this change.

The GitHub page on https://athena-os.github.io/athena-repository can be accessed correctly, but when I try to access to the files specified on my GitHub repo at https://github.com/Athena-OS/athena-repository, I get 404 error, for example if I try to access to https://athena-os.github.io/athena-repository/x86_64 or directly to a file https://athena-os.github.io/athena-repository/x86_64/archlinux-tweak-tool-1.0.0-1-x86_64.pkg.tar.zst.

How can I fix this issue?

1 Like

Hello and welcome here!

The file you are looking for just does not exist in your repo:

Also GitHub Pages is not really meant for hosting binaries like you intend to do. We are mostly catering web pages. For that reason, we don’t enumerate folders which is why https://athena-os.github.io/athena-repository/x86_64 gives you a 404.

1 Like

Ok, I solved the issue despite it was very strange…

In practice, for first I created an index.md and .yaml files on my GitHub repo root where placing the index page of the website. Then, according the documentation, on the Settings of the repository → Pages, I set “main” as Branch and /root as folder. And I saved this change.

After this action, that should correspond to a Pull Request, an automatic job starts on GitHub that you can check on “Action” tab of your repository.

I noted that this action failed when Jekyll was building and the error was related to the presence on my repository of files as broken links. When I deleted these broken links (that were not called by my index page), the automatic task starts again and at the end it finished well. At this point I was able to retrieve my files by accessing to the GitHub page (e.g. https://athena-os.github.io/athena-repository/x86_64/athena-calamares-3.2.59-1-x86_64.pkg.tar.zst)