GitHub Integration

Connect your GitHub repository to automatically deploy Dart and Flutter apps on every push, with support for production and preview deployments.

Connect your GitHub repository to deploy automatically from pushes and merges. GitHub integration replaces manual deployment steps and keeps your workflow continuous, enabling automatic deployments for both preview and production environments.

With GitHub integration, you can:

  • Import a GitHub repository to create and deploy a new Globe project
  • Automatically trigger deployments on every push to any branch
  • Designate a production branch for live releases
  • Connect existing Globe projects to GitHub repositories
  • Disconnect or switch repositories anytime
  • View deployment status for each commit

Globe integrates with GitHub via the GitHub Application.

How to Create a Project from a GitHub Repository

When creating a new project, you can import a GitHub repository during the setup process.

Step 1. Authorize GitHub Access

  1. From the Globe dashboard, go to Projects → Create Project
  2. Select Connect your GitHub account and authorize the Globe GitHub App
  3. You'll be redirected back to the Project Create screen afterward

Step 2. Choose Repositories

After authorizing the GitHub app, configure the repositories that are available to Globe:

  1. Select Configure the GitHub app
  2. Select specific or all repositories you want Globe to access
  3. You will be redirected to the Project Create screen

Step 3. Import & Configure

  1. Select Import next to the repository you want to use
  2. Configure the following:
    • Import settings: organization, name, root directory, branch
    • Build settings: framework preset, build command, entry point
    • Build config: SDK version, build runner, Melos
    • Environment variables
  3. Select Deploy to trigger the first deployment

From now on, every time you push to GitHub, Globe will automatically create a new deployment:

  • For your production branch, a production deployment is created
  • For all other branches, a preview deployment is triggered

How to Connect a Repository to an Existing Project

If you've already deployed a project (e.g., via CLI) and want to connect it to a GitHub repository:

  1. Open the project → Go to SettingsGit
  2. Select Connect and choose your repository
  3. Set deployment configurations as needed

Once connected, pushes to your GitHub repository will automatically trigger deployments for this project.

How GitHub Integration Works

The GitHub integration enables automatic deployments based on your repository activity:

  • Preview Deployments: Triggered by pushes to any branch except your production branch
  • Production Deployments: Triggered by pushes to your designated production branch
  • Commit Status: Globe adds deployment status indicators to your GitHub commits

How to Disconnect a GitHub Repository

To stop automatic deployments:

  1. Go to your project → Settings → Git
  2. Select Disconnect

Disconnecting from GitHub will not delete existing deployments. It only stops new deployments from being triggered by Git pushes.

Best Practices

  • Use a clear branching strategy (e.g., main for production, dev for testing)
  • Protect your production branch if collaborating in teams
  • Consider pairing this with the CLI for local preview builds
  • Only connect necessary repositories for clarity and security; follow the principle of least privilege

Related Topics