Error - unable to execute the job - failed at 'Run Hugo'

circle.yml

#1

Hello,
I am very new to CI and Hugo and am trying to step up CI from my Hugo project to CircleCI but I am getting the following error:

#!/bin/bash -eo pipefail
HUGO_ENV=production hugo -v -s public/
Error: Unable to locate Config file. Perhaps you need to create a new site.
       Run `hugo help new` for details.

Exited with code 255

Here is the my GitHub project

What is puzzling me this that the Configuration in Circle.ci is not reflecting the most current push to GitHub. So it is building an older version!
Would anyone like to offer any help? I would really appreciate it.

Best,
Ben


#2

What branch did you push on, and what branch is it building?


#3

Yes. thanks @halfer
It was the master branch. (the only one I have)
So changes are getting pushed to GitHub but not to Circle.ci.?

Cheers,
Ben


#4

Maybe try to remove the filters temporarily to see if that is affecting it?


#5

hello @halfer,

Thanks for replying. Sorry, where can I find the filters? is that is GitHub?

Cheers,
Ben


#6

Yes, it’s in your config - see here.


#7

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.