在GitHub上创建 Deploy keys 步骤

因此在为 Electron 程序实现基于 GitHub release的自动版本检测功能,需要通过 electron-update 对接 GitHub,因此涉及到了要在 GitHub 项目中创建 Deploy keys。

在 GitHub 项目中创建 Deploy keys具体步骤如下:

  • 进入 GitHub 对应项目 → Setting → Deploy keys → add deploy keys
  • 执行以下命令生成密钥并自动复制到剪贴板:
    ssh-keygen -t ed25519 -C [your email]
    cat ~/.ssh/id_ed25519.pub | pbcopy
  • 将密钥粘贴至表单的 key 字段,务必勾选:Allow write access
    (补充说明:此前看到密钥需以 Begins with 'ssh-rsa', 'ecdsa-sha2-nistp256', 'ecdsa-sha2-nistp384', 'ecdsa-sha2-nistp521', 'ssh-ed25519', 'sk-ecdsa-sha2-nistp256@openssh.com', or 'sk-ssh-ed25519@openssh.com'提示一直不解,实际该密钥需自行生成即可匹配要求。)


相关推荐
Timer@12 小时前
TypeScript + React + GitHub Actions:我是如何打造全自动化 AI 资讯系统的 - 已开源
react.js·typescript·github
badhope12 小时前
Matplotlib实战30例:全类型图表代码库
人工智能·python·plotly·github·matplotlib
badhope12 小时前
最小二乘与最速下降法实战解析
人工智能·机器学习·plotly·github·matplotlib
CoderJia程序员甲12 小时前
GitHub 热榜项目 - 日榜(2026-03-24)
人工智能·ai·大模型·github·ai教程
C++ 老炮儿的技术栈12 小时前
现代 C++(C++11 及以后)的移动语义
linux·c语言·开发语言·c++·github
逛逛GitHub1 天前
断网也能跑的小龙虾,EdgeClaw 在 GitHub 上开源了。
github
Uncertainty!!1 天前
将docker镜像上传到github镜像存储仓库(GitHub 容器仓库(GHCR)使用流程)
docker·容器·github
赵文宇(温玉)1 天前
Openclaw-In-Docker新版本发布,更轻、更快、更健壮,1600+次下载,30+Github关注
docker·容器·github·小龙虾·clawclaw
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2026-03-23)
ai·大模型·llm·github·ai教程
badhope1 天前
Docker入门到实战全攻略
linux·python·docker·github·matplotlib