Maintain go.mod in the root for github

Im looking to have the go.mod file in the root of the repo so that Github picks it up as a dependency…

However my site is in /site/ and it only seams to work if I put the go.mod in that folder. Im resorting to putting a dummy go.mod in the root to satisfy github, but it would be great to have this work.

Have you followed the example in the documentation? There shouldn’t be a need to have a go.mod anywhere under the public directory that Hugo renders the site into. You should be running Hugo in the root of the project directory where the go.mod is. Your content should end up rendered into public/site relative to the project directory, and the action should deploy it from there.