Hosting website on github pages

I created my website, a personal portfolio using PaperMod theme. It is running locally but when I try to deploy it, the workflow run is unsuccessful. Any solutions please?

Post the log and your workflow file.

@jmooring


@jmooring

@jmooring

It cannot find your configuration file. I suspect you do not have the entire project under source control. Please share a link to your project repository.

The repo is empty except for the workflow file.

You need to add all the files for your Hugo site to the repo.

ok sure i will try that and update. Thank you

I tried again but still was not successful in deploying.
link to repository: GitHub - Anamika457/Anamika457.github.io
Any suggestions?
@frjo
@jmooring

Use the documented GitHub Pages workflow:
https://gohugo.io/hosting-and-deployment/hosting-on-github/

This is your site, cloned, and properly served:
https://github.com/jmooring/hugo-forum-topic-46470

Ok thank you very much!

Does the the hugo.yaml file work the same for macos or do I have to make any changes?
@jmooring

No, they way you install Hugo, dart-sass etc. are different on macOS vs Linux.

But why do you insist on using macOS for the action?

1 Like