Version: 5.6
Using Git with Unity Cloud Build
将 Bitbucket 用于 Unity Cloud Build

将 GitHub 用于 Unity Cloud Build

Unity Cloud Build 可以连接到 GitHub (github.com) 上托管的 Git 和 Git 大型文件存储 (LFS) 代码仓库。Unity Cloud Build 连接到 GitHub 时,它会自动检测您的仓库是公开还是私有代码仓库。

使用公开 GitHub 代码仓库

Unity Cloud Build 可以自动连接到 GitHub 上的公开代码仓库。在 Cloud Build 中设置项目时,请粘贴代码仓库的 URL。

使用私有 GitHub 代码仓库

如果您的 GitHub 仓库为私有代码仓库,请查找在项目的 Cloud Build 设置期间由 Unity 提供的 SSH 密钥,然后按照以下说明将其添加到您的 GitHub 帐户。

1.登录您的 GitHub 帐户

2.单击 __Account Settings__(显示为螺丝刀和扳手的按钮)

3.从菜单中选择 SSH Keys

4.单击 Add SSH Key__,然后为其命名(例如 Unity Cloud Build__)

5.将 Unity Cloud Build SSH 密钥粘贴到 GitHub Key 字段中

6.单击 Add Key

Using Git with Unity Cloud Build
将 Bitbucket 用于 Unity Cloud Build