Connect GitHub to a team
Xenkloud reads your repositories through the Xenkloud GitHub App. You choose which repositories it can see, and it can't change your code.
- In Sites › Create site, choose GitHub, then Connect GitHub.
- On GitHub, install the app on your account or organization and choose Only select repositories (recommended) or all.
- GitHub asks you to sign in. This proves you can see the installation, so nobody else can link your GitHub account to their team.
- Back in the Console, choose the team to connect it to.
You can connect one GitHub account to several teams, and a team to several GitHub accounts.
Tip
To give the app more repositories later, change the installation on GitHub under Settings › Applications › Xenkloud › Configure. The Missing one? link in the repository list goes there.
Connect an existing site
An uploaded site can switch to Git: open the site's Deploys tab, choose Connect GitHub, pick the repository and branch, and choose Connect and deploy.
What happens on each push
| Event | Result |
|---|---|
| Push to the production branch | A production deploy builds, then goes live if it passes |
| Push to any other branch | Nothing, unless the branch has an open pull request |
| Pull request opened or updated | A preview builds at its own address |
| Pull request closed or merged | Its preview is removed |
Commit message contains [skip deploy] |
No deploy for that push ([skip ci] works too) |
Each commit also gets a check on GitHub named Xenkloud Sites: site, linking to the live site or to the failed build's log.
Build queue
Builds run one at a time, oldest first, and wait as Queued until their turn. A newer push doesn't cancel an older one; choose Cancel deploy on a deploy you no longer need. Deploy now builds the branch's latest commit again, for example after changing a setting.
Settings and secrets
Values you add under Settings and secrets are given to the build and to the site's functions as environment variables (process.env). Secret values are never shown again after you save them. See Build settings.
Security
- The build runs in a throwaway sandbox with its own user, no access to our servers, and a time limit.
- Your code is downloaded with a token that works for that one repository and expires within an hour.
- Pull requests from forks are never built. A build receives the site's secrets, so only branches in your own repository build.
Disconnect
On the site's Deploys tab, choose Disconnect. The live deploy keeps serving, and you can upload zips again. If you uninstall the app on GitHub, every site connected through it keeps its live deploy and stops building.