Error happen when generate new html stage
自动部署时,在"Generate new html"阶段出错,错误如下:
Run cp -r ./* /opt/Gmeek/ {'Blog test': '#ED336B', 'bug': '#d73a4a', 'documentation': '#0075ca', 'duplicate': '#cfd3d7', 'enhancement': '#a2eeef', 'good first issue': '#7057ff', 'help wanted': '#008672', 'invalid': '#e4e669', 'question': '#d876e3', 'Team work': '#08EE35', 'wontfix': '#ffffff'} Traceback (most recent call last): File "Gmeek.py", line 320, in <module> blog.runOne(options.issue_number) File "Gmeek.py", line 293, in runOne listJsonName=self.addOnePostJson(issue) File "Gmeek.py", line 251, in addOnePostJson self.blogBase[listJsonName][postNum]["style"]=self.blogBase["style"] KeyError: 'style' blogBase is exists and issue_number!=0, runOne ====== start create static html ====== Error: Process completed with exit code 1.
@thisjok
这个问题出在近期的一次更新,新增了全局自定义style和script的功能,出现这种问题一般通过手动全局生成一次都可以解决,具体可见 https://blog.meekdai.com/post/Gmeek-kuai-su-shang-shou.html
建议通过Actions->build Gmeek->Run workflow->里面的按钮全局重新生成一次
另外我看到你现在已经自动部署成功了,你是手动删除了blogBase.json等文件,触发了全局生成。