I have a github repository [1] (named "exo-cortex.github.io" that I want to use to make a static website on github). In it there are the hugo source files. There is also a git submodule [2] for the theme "archie", which I have forked, because I want to make some changes to it (i.e. KaTeX rendering of mathematical symbols). Through the command "hugo server" I can view the website locally where everything looks fine. Once I run the command
hugo -t archie
hugo compiles the project into a static website in the folder "public" [3].
I learned that through github actions I can let github do the compilation and deployment for me. In fact I get some kind of website, although without the theme and without the content. I have tried many times and it does not work.
Are there some common pitfalls with my approach? Is there a better way? For example I am thinking about working with 3 repositories [1-3] marked above. In this constellation I would have the main repo [1] under a different name (i.e. not exo-cortex.github.io) and 2 git submodules: [2] would stay as is and [3] (the folder "public") would be a second git submodule with which I would push directly to my github pages website. This way I would have to build the site manually on my local computer.