🩹
zola のデプロイでエラーが発生する場合の解決方法
概要
zola のデプロイで次のエラーが発生した場合の解決方法
Starting deploy...
Building in my_site directory
Set safe directories
Fetching themes
Submodule 'my_site/themes/simple-dev-blog' (https://github.com/bennetthardwick/simple-dev-blog-zola-starter.git) registered for path 'themes/simple-dev-blog'
Cloning into '/github/workspace/my_site/themes/simple-dev-blog'...
Submodule path 'themes/simple-dev-blog': checked out '31cec6b6205a10026a926f09d6a1e08110dfd024'
Using zola 0.17.2
Building with flags:
Building site...
Error: Failed to build the site
Error: Error parsing templates from the /templates directory
Error: Reason: Io error while writing rendered value to output: NotFound
Error: Reason: No such file or directory (os error 2)
バージョン
- getzola/zola: v0.17.2
- shalzz/zola-deploy-action: v0.17.2
解決方法
issues#2186 を参考に、my_site/templates/.gitkeep
を作成します。
Discussion