> For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt.

# Connect GitHub

You need administrator access (_Admin_) to the repository. The repository may
be private.

You need the deploy key and the webhook address from us
(see [Getting started](/en/static/kom-igang.md#steg-2-det-har-far-du-av-oss)).

## 1. Add the deploy key \{#1-lagg-in-deploynyckeln}

1. Open the repository and go to **Settings → Deploy keys** (under _Security_ in
   the menu on the left).
2. Click **Add deploy key** and fill in:
   - **Title:** `GetGeek Static` (any name)
   - **Key:** the whole key from us, the line starting with `ssh-ed25519`
   - **Allow write access:** _must be unticked._ We only need to read.
3. Click **Add key**.

## 2. Add the webhook \{#2-lagg-in-webhooken}

1. Go to **Settings → Webhooks** and click **Add webhook**.
2. Fill in:
   - **Payload URL:** the webhook address from us
   - **Content type:** doesn't matter — `application/json` is fine
   - **Secret:** leave empty (the key is already in the address)
   - **SSL verification:** _Enable SSL verification_
   - **Which events would you like to trigger this webhook?** —
     **Just the push event**
   - **Active:** ticked
3. Click **Add webhook**.

GitHub immediately sends a test (_ping_). Under **Recent Deliveries** on the
webhook's page there should be a green tick and the response code **202**.

:::tip Rebuild without pushing
Under **Recent Deliveries** you can pick an earlier delivery and click
**Redeliver**. That starts a new build of the latest version in your branch.
:::

If you get an error message, see
[Troubleshooting](/en/static/felsokning.md#webhooken-svarar-med-fel).
