About workflows
Workflows
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.
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.
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.}
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.
We currently only support GitHub but will offer other git providers soon.
In Kinde, go to Settings > Environment > Git repo.
Select Connect repo.
Follow the on-screen prompts to connect your git service.
Select the repo and select Next.
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.
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.
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.
Review any issues in the Sync log.
You can re-sync the code at anytime by selecting Sync code.
If the preview code option is switched off, your code will be pushed live automatcially each time you sync.