peaceiris / actions-hugo

GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
https://github.com/marketplace/actions/hugo-setup
MIT License
1.41k stars 84 forks source link

support: fail to deploy the site to github page #616

Open jack-pan-ai opened 1 year ago

jack-pan-ai commented 1 year ago

Checklist

Describe your question

The code can be well deployed using the netlify, but it will have errors when it submodules.

Relevant links

Public repository: https://github.com/jack-pan-ai/my-wowchemy-site
YAML config: https://github.com/jack-pan-ai/my-wowchemy-site/blob/main/config/_default/config.yaml
YAML workflow: https://github.com/jack-pan-ai/my-wowchemy-site/tree/main/.github/workflows

Relevant log output

Error: Error: fatal: remote error: upload-pack: not our ref e2c730ae7286e12b63097327ffaeb660cf245941 Error: fatal: Fetched in submodule path 'public', but it did not contain e2c730ae7286e12b63097327ffaeb660cf245941. Direct fetching of that commit failed. Error: The process '/usr/bin/git' failed with exit code 128

Additional context.

failed to submodule into the public file because of no ref e2c730ae7286e12b63097327ffaeb660cf245941