Deploy from GitHub: every push goes live

Your site lives in a repository on GitHub? Connect it, and every push to the branch you pick goes live. No workflow, no token, nothing to keep. It is free.

How it works

  1. Open your site in the portal and go to the GitHub tab.
  2. Click "Install the Dorelli app on GitHub". On GitHub you choose the account and which repositories the app may read. It only reads; it cannot change anything in your repository. The first time, GitHub then asks whether Dorelli Cloud may see who you are. That is how we know the installation is yours: only the person who installed the app can connect it to a site.
  3. Back in the portal, pick the repository, the branch and the folder with your site. You can leave the folder empty: we find the folder with index.html ourselves.
  4. Click "Connect and publish". The branch goes live right away, and from now on every push to it does too.

GitHub sends us a message on each push. We fetch the files of that commit, keep what a site can hold (HTML, CSS, images, fonts, scripts) and leave out the rest, such as README.md, package.json and the .github folder. The new version goes through the same checks as an upload, and the previous version stays online until the new one is in.

A new site straight from GitHub

No site yet? On the dashboard of the portal, click "New site from GitHub". Pick the repository; the address comes from its name, and you can change it. The site is yours right away and the branch goes live. Everything else works the same as above.

Previews per branch and pull request

Push to another branch than the connected one, and that branch gets its own address, such as dorelli-pv12-feature-x.dorelli.cloud, after the same check as an upload. Open a pull request and it gets a comment with the link; every push to the pull request updates the preview, and GitHub shows it as a deployment. A preview goes away when the branch or the pull request is closed, after fourteen days without a push, or when you remove it on the GitHub tab. At most ten per site. A pull request from a fork gets no preview. Turn previews off on the GitHub tab if you do not want them.

A site with a build step

Does your folder have no index.html but a package.json? Then the repository needs a build first, with Vite, Astro, Next or another tool. A Vite or Astro project with an index.html in the root counts as a build too: that index.html is the source, not the site. We do not build on our server; GitHub does, on the minutes of your own GitHub account. The GitHub tab then shows a workflow file, with the output folder guessed from your package.json. The button "Put the workflow on GitHub" opens it in your repository, ready to commit; or put it there yourself as .github/workflows/dorelli.yml. Every push builds the site on GitHub and publishes it with the id token of the run, because the connection already binds your site to the repository. No deploy token needed.

Settings in your repository

Put a dorelli.json in the root of the repository and it decides at every push: folder (the folder with the site), output (the output folder of a build) and previews (true or false). It goes before what you set in the portal, and all three are optional. A dorelli.json that is not valid JSON stops the push with the reason on the GitHub tab.

Several sites from one repository

Connect each site to its own folder in the repository. A push that changes nothing in a site's folder leaves that site as it is: the commit gets a green check that says so, and the GitHub tab lists it as unchanged.

A message in Slack, Discord or your own tool

On the Agents tab you can add a webhook for the events "push from GitHub" and "preview from GitHub". A Slack or Discord webhook address gets a readable message; any other address gets our JSON with the branch, the commit, the outcome and the address.

Good to know

  • One repository per site, and one branch. Pushes to other branches do nothing.
  • At most 50 MB and 500 files, like an upload.
  • A site without a subscription publishes from GitHub at most 20 times an hour, and builds at most 20 previews an hour, counted per GitHub installation. When many publications run at once, a push waits its turn, up to five minutes.
  • "Publish now" in the portal fetches the branch without waiting for a push.
  • "Disconnect" stops it. A push then no longer changes your site, and runs of GitHub Actions no longer publish with their id token either.
  • Remove the app from your GitHub account and the connection stops too; the portal says so.
  • Installed the app before, but it does not show in the portal? On the GitHub page of the portal, click "I already installed the app". After a check on GitHub, every installation you made yourself and that is not linked yet comes to your account.
  • The outcome also shows on the commit on GitHub, as the status dorelli/site: a green check when it is live, a red cross with the reason when it is not.
  • A push that was refused or failed gets you a mail, once per kind of failure. Your previous version stays online.
  • Two pushes right after each other: only the newest is published.
  • The GitHub tab lists your last pushes with what each one did. "Put back" puts an earlier version online again, after the same check as an upload.
  • The first push that goes live gets you a mail with the address, once per connection.
  • The badge on the GitHub tab shows in your README whether the last push is live.
  • The connected branch also shows on GitHub as the deployment "production", with "View deployment" on the commit.
  • Your code stays on GitHub. We read a repository only when you push or press "Publish now", and we store nothing of it but the published site.

Checked against the code on 25 November 2026 · Evidence: lib/github-koppeling.ts, lib/github-app.ts, app/api/github/webhook/route.ts, app/portal/sites/[id]/github/page.tsx, scripts/github-koppeling-test/asserts.mjs, lib/github-bewijs.ts

Was this helpful?

/docs/deploy/github.md