Closed Xevion closed 2 years ago
Apologies for opening up the issue. After leaving the issue alone and coming back to it later tonight, I was able to just now fix it.
if: ${{ github.ref == 'refs/heads/master' }}
was comparing against the main
branch, so it would work successfully all the way until the deploy stage, but it wouldn't error, just silently exit instantly.gh-pages
, but it was empty../public
directory. I'm not very experienced with hugo, so my knowledge of why ./public
was the default folder was limited to believing it was perhaps an obsolete GitHub pages deployment folder (like /docs
, or perhaps it was for organization repositories).peaceiris/actions-gh-pages
repo, I finally figured out that publish_dir
was not the directory that the commit places files to be published from - it's what the action pulls from, explaining why the headline for publish_dir
says "Source Directory".I apologize if I wasted anyone time with this issue.
Thanks, great notes! Enjoy Hugo ʕ◔ϖ◔ʔ
Checklist
Describe your question
Why is my Hugo Deploy Action not deploying to my
gh-pages
branch correctly?Relevant links
Relevant log output
No relevant log output. Check latest action as of time of issue creation for details.
Additional context.
I have everything set up correctly to the best of my knowledge. The submodule for the theme exists, it runs on my local machine with the version provided correctly. I've read both the Actions repo README and the Hugo Actions repo's README several times. My action deploys without error. The repository is set to use the
gh-pages
branch as mentioned. I've tried using/docs
and/<root>
, and switched around the Workflow YML configuration several times, but nothing has worked. Currently, Jekyll's README deploys, so I'm not sure what to make of that.I really do apologize if it's something obvious, but I've exhausted all ideas on how to get this working and Google won't give me any useful suggestions.
Thanks.