actions-gh-pages
actions-gh-pages copied to clipboard
support: Unable to locate config file or config directory
Checklist
- [X] I am using the latest version of this action.
- [X] I have read the latest README and followed the instructions.
- [X] I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.
Describe your question
I failed to build hugo...
I'm trying to deploy my hugo blog in repository A to my github pages repository B. Here is what my workflow looks like:
Relevant links
Public repository:
YAML config:
YAML workflow:
Relevant log output
No response
Additional context.
No response
Is your Hugo project located in the repository root? Your project seems to have a Hugo project under a sub directory.
In this case you can use the steps.run.working-directory
.
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
And you need to deploy your site to another branch like the gh-pages
branch, not the master branch, if your Hugo source is managed in the master branch. Please check the basic concepts of GitHub Pages deployment type.
Thank you so much, I think my problems are solved. Even though I didn't know what happened...