Skip to content

support: Run hugo --minify hugo --minify shell: /usr/bin/bash -e {0} Total in 0 ms Error: Unable to locate config file or config directory. Perhaps you need to create a new site. Run hugo help new for details. Error: Process completed with exit code 1. #661

@habibimoiz

Description

@habibimoiz

Checklist

  • I am using the latest version of this action.
  • I have read the latest README and followed the instructions.
  • I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.

Describe your question

I am trying to deploy a static HTML directory to my GitHub pages, however when I add the following to my workflow, I am getting the following error:

Run hugo --minify
hugo --minify
shell: /usr/bin/bash -e {0}
Total in 0 ms
Error: Unable to locate config file or config directory. Perhaps you need to create a new site.
Run hugo help new for details.
Error: Process completed with exit code 1.

Relevant links

Public repository:
YAML config:
YAML workflow:

Relevant log output

Run hugo --minify
hugo --minify
shell: /usr/bin/bash -e {0}
Total in 0 ms
Error: Unable to locate config file or config directory. Perhaps you need to create a new site.
Run hugo help new for details.
Error: Process completed with exit code 1.

Additional context.

I do not have a config file configured, however I am not seeing anywhere in the documentation where that is a requirement.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions