Closed anticdimi closed 1 year ago
I have the same problem. This is my log:
[INFO] ForceOrphan: false
/usr/bin/git clone --depth=1 --single-branch --branch gh-pages ***github.com/Darker/battletech-techsheet.git /home/runner/actions_github_pages_1692478804848
Cloning into '/home/runner/actions_github_pages_1692478804848'...
[INFO] clean up /home/runner/actions_github_pages_1692478804848
[INFO] chdir /home/runner/actions_github_pages_1692478804848
/usr/bin/git rm -r --ignore-unmatch *
rm '.nojekyll'
[INFO] chdir /home/runner/actions_github_pages_1692478804848
[INFO] prepare publishing assets
[INFO] copy /home/runner/work/battletech-techsheet/battletech-techsheet/web/root to /home/runner/actions_github_pages_1692478804848
cp: no such file or directory: /home/runner/work/battletech-techsheet/battletech-techsheet/web/root/*
cp: no such file or directory: /home/runner/work/battletech-techsheet/battletech-techsheet/web/root/.*
[INFO] delete excluded assets
rm: no paths given
[INFO] Created /home/runner/actions_github_pages_1692478804848/.nojekyll
The only file that ends up in gh-pages branch is the .nojekyll
file created at the end.
@anticdimi Your ./public
looks empty, I think.
@Darker Your ./web/root
looks empty too.
Here is my new example repo. FYI https://github.com/peaceiris/test-mdbook
I may have misunderstood the purpose of this action. I thought it would publish from master
to gh-pages
. I have in the meantime resolved this by using a different action. Byt my web/root
in master was not empty: https://github.com/Darker/battletech-techsheet/tree/master/web/root
Hi @peaceiris ,
I don't think that is the case, because when I run hugo --minify
on my local machine, the ./public dir actually contains the website content.
I have also solved this issue by using a different deployment method.
Checklist
Describe your question
Hi @peaceiris , Thank you for your work, it really is useful!
My website can't deploy correctly. It seems like the
public/
dir is not created in the correct location (see the log output bellow). Any hints on how to solve this?Relevant links
Relevant log output
[INFO] copy /home/runner/work/anticdimi.github.io/anticdimi.github.io/public to /home/runner/actions_github_pages_1692352328176 cp: no such file or directory: /home/runner/work/anticdimi.github.io/anticdimi.github.io/public/.*
Additional context.
No response