Guide · GitHub

Deploy from GitHub

Two ways to deploy from a GitHub repository: connect it to zeroconfig so every push deploys automatically, or add a short GitHub Actions workflow that calls our API from your own CI.

Where things stand

  • Connect GitHub: available. Connect your account in the dashboard, pick a repository and branch, and every push to that branch deploys.
  • GitHub Actions + REST API: available on every plan, for when you want to deploy from your own CI.

How does Connect GitHub work?

  1. In the dashboard, open your app and choose Deploy from GitHub → Connect GitHub. GitHub opens.
  2. Choose the account or organization, then All repositories or Only select repositories. zeroconfig only sees the repositories you pick, and you can change that any time on GitHub under Settings → Applications.
  3. Back in zeroconfig, pick the repository and branch and choose Deploy. Optionally set a root folder (for monorepos), the build command and the output folder.
  4. From then on, every push to that branch redeploys automatically. GitHub shows a zeroconfig / your-app status check on each commit: pending while it builds, then a green check that links to the live site, or a red cross that links to the app in your dashboard.

Your AI assistant can do step 3 for you: once GitHub is connected, ask it to "deploy acme/website from the main branch to my-site".

What gets built from my repository?

  • Static and serverless apps with a build command are built in the same isolated sandbox as uploads; otherwise the files deploy as they are.
  • App servers build from the Dockerfile in the repository and go live once the new version answers.
  • Each deploy counts toward your plan's deployments and build minutes, exactly like an upload. Every deploy is versioned, so you can roll back.
  • One deploy runs at a time per app. A newer push replaces an older one that hasn't started yet.
  • Add [skip ci] or [zc skip] to a commit message to push without deploying.
  • Limits: up to 60 push deploys per account per hour; repositories up to 100 MB compressed.

To change which repositories zeroconfig can read, or to remove it, go to Settings → Applications on GitHub. Uninstalling the zeroconfig app stops all push deploys.

How do I add a Deploy with zeroconfig button?

Put this in your README. Anyone who clicks it can deploy your repository to their own zeroconfig account:

Deploy with zeroconfig
[![Deploy with zeroconfig](https://zeroconfig.cloud/button.svg)](https://app.zeroconfig.cloud/#new?repo=https://github.com/OWNER/REPO)

Replace OWNER/REPO with your GitHub repository. Anyone who clicks the button signs in or creates an account, and zeroconfig opens with that repository ready to deploy.

How do I deploy with GitHub Actions instead?

  1. Create an API token in the dashboard under Security → API tokens.
  2. In your repository, add it as an Actions secret named ZEROCONFIG_TOKEN.
  3. Create the app once (from the dashboard, your assistant, or the API call below).
  4. Add this workflow. It builds the site and uploads the output on every push to main:
# .github/workflows/deploy.yml
on: { push: { branches: [main] } }
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm ci && npm run build
      - run: |
          cd dist && zip -qr ../site.zip .
          curl -fsS -X POST https://api.zeroconfig.cloud/v1/apps/my-site/deployments \
            -H "authorization: Bearer ${{ secrets.ZEROCONFIG_TOKEN }}" \
            -H "content-type: application/zip" --data-binary @../site.zip

Replace my-site with your app name and dist with your build's output folder.

Can I call the REST API directly?

Yes. The same two calls work from any CI system or script:

# Create the app (once)
curl -X POST https://api.zeroconfig.cloud/v1/apps \
  -H "authorization: Bearer $ZEROCONFIG_TOKEN" \
  -H "content-type: application/json" \
  -d '{"name":"my-site","runtime":"static"}'

# Deploy a zip of your site
curl -X POST https://api.zeroconfig.cloud/v1/apps/my-site/deployments \
  -H "authorization: Bearer $ZEROCONFIG_TOKEN" \
  -H "content-type: application/zip" --data-binary @site.zip

Use "runtime":"worker" for a serverless JavaScript or TypeScript app. More in the API documentation.

Frequently asked questions

Can zeroconfig deploy automatically when I push to GitHub?

Yes. Connect GitHub in the dashboard, pick a repository and branch, and every push to that branch redeploys automatically, with no workflow file. If you prefer to deploy from your own CI, a short GitHub Actions workflow can upload your build through our REST API instead.

Does zeroconfig need access to all my repositories?

No. When you connect GitHub you choose all repositories or only selected ones, and you can change that any time on GitHub under Settings → Applications. The Actions workflow needs no GitHub access at all, only a zeroconfig API token stored as a secret.

Do I get a status check on my commits?

With Connect GitHub, yes: each commit shows zeroconfig / your-app as pending, then success with a link to the live site, or failure with a link to the dashboard.

Can I deploy a monorepo?

Yes. Set the root folder of the app inside the repository, for example apps/web, plus the build command and output folder if they are not detected.

How do I skip a deploy for one push?

Put [skip ci], [ci skip], [zc skip] or [skip zc] in the commit message.

Can I roll back a bad push?

Yes. Every deploy is a new version. Roll back from the dashboard, the API or your AI assistant, and the previous version is live again in seconds.

Ship on every push

Create your account, connect GitHub and push.