朱莉娅文档"Load key: invalid format"



我按照托管文档(document .jl)部署TSSOS Julia包的文档。但我得到了以下错误的工作流程(GitHub行动):

Failed to add the RSA host key for IP address '140.82.112.3' to the list of known hosts (/home/runner/.ssh/known_hosts).
Load key "/home/runner/work/TSSOS/TSSOS/docs/.documenter": invalid format
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
┌ Error: Git failed to fetch git@github.com:wangjie212/TSSOS.git
│ This can be caused by a DOCUMENTER_KEY variable that is not correctly set up.
│ Make sure that the environment variable is properly set up as a Base64-encoded string
│ of the SSH private key. You may need to re-generate the keys with DocumenterTools.
└ @ Documenter ~/.julia/packages/Documenter/FuXcO/src/Documenter.jl:554

有解决这个问题的办法吗?我使用的是Windows 10系统,密钥对是由DocumenterTools.genkeys生成的。

啊,看来秘密用错地方了。当您输入秘密时,有两个选项:环境秘密和存储库秘密。在新的github界面中,很难找到可以添加存储库秘密的位置,但仍然是可能的。它是在settings/secrets中,你必须首先创建一个环境。创建环境后,您应该再次点击secrets,在界面中间有一个几乎看不见的按钮"新建存储库秘密"。你应该把DOCUMENTER_KEY放在那里,一切都会顺利进行。

相关内容

  • 没有找到相关文章

最新更新