Skip to content
  • Workflows
  • About workflows

Connect your workflows repo and branch

We want you to keep control of your own code, in your own repo, so you can update and commit as usual. Then sync your code with one click and it’s ready to use.

You first need to set up your repo and connect the branch to Kinde.

Set up your repo

Link to this section

For the code sync to work, your workflow files need to be stored in a specific place in your repo. This tells Kinde where your custom code lives. If you prefer to use an alternative directory you can change kindeSrc to something else.

  1. In the root of the repo create a file called kinde.json with the content:

    {
    "rootDir": "kindeSrc" // This is root folder Kinde will use to discover workflows.
    }
  2. Create this folder structure in your repo’s root directory: [RootFolder]/environment/workflows. This is where you will add the files that Kinde will read.

Connect your repo and branch

Link to this section

We currently only support GitHub but will offer other git providers soon.

  1. In Kinde, go to Settings > Environment > Git repo.

  2. Select Connect repo.

  3. Follow the on-screen prompts to connect your git service.

  4. Select the repo and select Next.

  5. Select the branch and select Save. You will know the connection is successful when you see the connected repo panel at the top of the screen.

  6. If you are on an eligible Kinde plan, switch on the code preview mode option in Advanced settings. This lets you preview code in prod before making it live.

  7. Check if your code has synced to Kinde. Go to Home > Workflows. If you already have workflow files set up, the workflows will appear in Workflows page. If we failed to read your workflow code, you should see a warning.

    workflow in Kinde

  8. Review any issues in the Sync log.

  9. You can re-sync the code at anytime by selecting Sync code.