Site working on local, how to use github pages ? #842
-
Hi there everyone, thanks to you guys I figured how to setup my Hugo website, using gitmodules on my themes folder. On local, everything is fine tuned, I just need to make some posts ! But online I'm having troubles, I can't seem to find why github actions are not working. I copied the deploy.yml file from the hugo-theme-stack-starter to my website repository. I changed the Should I redirect something to make it build properly using my submodule ? The starter guide is working on my end so I don't understand what could be changing apart from the theme installation method. I just seem to see a XML file instead of the whole website. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The build section has something interesting :
So indeed it doesn't find my theme, but I don't know yet what to do. |
Beta Was this translation helpful? Give feedback.
-
Alright then, the fix provided by a long discussion with our dear chatGPT helped me : It seems like the issue with the GitHub Workflow not finding the theme might be related to the submodule not being cloned during the default To ensure the submodule is also cloned, you need to add an extra step before the Here's how you can modify your workflow: yaml
By adding the |
Beta Was this translation helpful? Give feedback.
Alright then, the fix provided by a long discussion with our dear chatGPT helped me :
It seems like the issue with the GitHub Workflow not finding the theme might be related to the submodule not being cloned during the default
actions/checkout@v2
step. When you use theactions/checkout@v2
, it only clones the main repository, but not the submodules.To ensure the submodule is also cloned, you need to add an extra step before the
actions/checkout@v2
. You can usegit
commands directly in the workflow to ensure the submodule is cloned along with the main repository.Here's how you can modify your workflow:
yaml