This tutorial takes a repository on GitHub to a live site. If your site isn't on GitHub, see Deploy without Git.
Before you start
- A Xenkloud account. See Create an account and team.
- A GitHub repository with either an
index.htmlor apackage.jsonwith abuildscript.
Step 1: Choose source
- In the Console, open Sites and choose Create site.
- Choose GitHub.
- The first time, choose Connect GitHub. GitHub asks you to install the Xenkloud app and pick which repositories it may read. Choose only the ones you want to deploy.
- Back in the Console, confirm the team the GitHub account belongs to.
Step 2: Add repository and branch
- Select the Repository.
- Select the Branch. Every push to it builds and goes live.
- If the site is one folder of a bigger repository, select My app is a monorepo and enter the App folder.
Step 3: App settings
- Enter a Name, and the Address: your site's free address,
name.xksites.ca. The address can't be changed later. - Check the Auto-detected framework, Build command and Build output folder. They're worked out from the repository; see Build settings and frameworks.
- Add any Settings and secrets your build or functions need, such as
API_URL. - Leave Pull request previews on to get an address for every pull request.
Step 4: Review
Check the details and choose Save and deploy. The deploy's log opens while it builds, usually in one to three minutes. When it shows Live, open the address.
What happens next
- Push to the branch: a new deploy builds and goes live when it passes. A failed build never replaces what's live.
- Open a pull request: it gets its own address and a comment linking to it. See Pull request previews.
- Add your own domain: see Custom domains.