actions-gh-pages icon indicating copy to clipboard operation
actions-gh-pages copied to clipboard

support: Unable to locate config file or config directory

Open ChrisKinko opened this issue 2 years ago • 3 comments

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... 截屏2022-05-02 1 45 24

I'm trying to deploy my hugo blog in repository A to my github pages repository B. Here is what my workflow looks like: 截屏2022-05-02 1 47 28

Relevant links

Public repository:
YAML config:
YAML workflow:

Relevant log output

No response

Additional context.

No response

ChrisKinko avatar May 01 '22 16:05 ChrisKinko

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.

peaceiris avatar May 02 '22 02:05 peaceiris

Thank you so much, I think my problems are solved. Even though I didn't know what happened...

ChrisKinko avatar May 02 '22 08:05 ChrisKinko

This issue has been marked as inactive.

If you still encounter this or it has changed, add a comment to provide further information.

github-actions[bot] avatar Jun 02 '22 15:06 github-actions[bot]