在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'提示一直不解,实际该密钥需自行生成即可匹配要求。)


相关推荐
zzqssliu3 小时前
煤炉自动代拍系统的队列设计与超时控制机制
git·github
fthux6 小时前
“装闭”,让装修套路“装”不下去
人工智能·ai·开源·github·open source
用户84913717547169 小时前
想做护眼工具却脑子一片空白?我用 OpenSpec 把模糊想法聊成了 v0.1
github·vibecoding
wangruofeng10 小时前
git-filter-repo 把 .git 从 112MB 砍到 1.4MB,但漏推 tag 让 clone 又胖回来
github·devops
峰向AI10 小时前
Block 放出大招!Buzz:一个中继统一代码、聊天、CI 全流程
github
dong_junshuai10 小时前
每天一个开源项目#47 4.4K Stars 的 LikeC4:让架构图随代码进化
github
独立开阀者_FwtCoder13 小时前
最近做了一个健身小程序:智形健身助手,健身的佬们来提点意见
前端·javascript·github
夕夕木各17 小时前
从第一个 PR 到 Vite 官方中文文档维护者
github·vite
隔窗听雨眠18 小时前
GitHub Actions自动化运维实战:从零构建一体化CI/CD流水线
运维·自动化·github
dong_junshuai2 天前
每天一个开源项目#46 World Monitor:6.6万星、56层地图的全球情报中枢
github