繁体   English   中英

Github 构建和部署错误:未找到上传的工件

[英]Github Build and Deploy Error: No uploaded artifact was found

我正在尝试部署 github.io 博客,但在构建和部署方面遇到问题。 我可以在本地服务器上毫无问题地构建文件,但是当我尝试通过推送它在 github 服务器上发布它时,它会抛出一个构建和部署错误:

错误:错误:找不到上传的工件!

图片

这是我的 git 回购链接以获取更多信息: https://github.com/dailyole/dailyole.github.io/runs/4677505925?check_suite_focus=true

几周前,我能够在 github.io 上毫无问题地发布相同的文件,但现在会抛出错误。

通过更改博客主题解决了它。

方法一:在web中通过设置修改。

  1. 在 GitHub 上,导航到您网站的存储库。
  2. 在您的存储库名称下,单击设置。 设置
  3. 在边栏的“代码和自动化”部分,单击“页面”,
  4. 然后,点击“更改主题”更改主题
  5. select 一个主题,点击“选择主题” select

方法二:修改文件

vim  _config.yml

换行

theme: jekyll-text-theme

一个新的主题,比如

theme: jekyll-theme-cayman

: 对不起, I need at least 10 reputation to post images

在我的情况下,我的问题是由一些错误的子模块引用引起的: https://github.com/catalin-hritcu/catalin-hritcu.github.io/actions/runs/1643762494

No url found for submodule path 'teaching/epit2018' in .gitmodules

这些天这似乎是一个常见问题: https://github.community/t/failed-to-publish-static-site-spa-with-submodules/219880

它使用如下命令修复了它:

git rm --cached teaching/epit2018

不过,这对你来说似乎不是问题。

据我所知,您的问题与我的不同: https://github.com/dailyole/dailyole.github.io/runs/4677504175?check_suite_focus=true

github-pages 223 | Error:  The jekyll-theme-hydejack theme could not be found.

我也遇到了这个问题,我的 git 回购是: github-pages 223 | Error: File to import not found or unreadable: mixins/reset-filter. github-pages 223 | Error: File to import not found or unreadable: mixins/reset-filter. 然后我看到有问题的路径,我发现这个文件没有上传。 该文件夹包含太多文件,我没有再次检查它。 可能您需要检查某些文件是否未上传。

意识到当您的 GitHub 存储库中有一个空子模块时会发生此问题。 删除了空子模块,它现在可以工作了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM