Elffuss BraidHub

kikocis/continue public

3ff29c567dd0 · 2.4 KiBRawPermalink
1---
2title: "Source Control"
3description: "When managing your custom agents within an organization, you might want to take advantage of your usual source control workflows. Continue makes this easy with a that automatically syncs your YAML files with hub.continue.dev. We are also planning on adding automations for GitLab, BitBucket, Gitee, and others. If you are interested, please reach out to us on ."
4---
5
6## Quickstart
7
8This quickstart uses a template repository, but you can also follow these steps 2-4 from an existing repository.
9
10### 1. Create a new repository from the template
11
12As shown in the image below, start by creating a new repository from [the template](https://github.com/continuedev/continue-hub-template). Click "Use Template" and then "Create a new repository".
13
14![Use the template repository](/images/hub/images/template-repo-65ccd7537b6fba3bbb202ee3e83e1953.png)
15
16### 2. Obtain a deploy key
17
18Deploy keys allow the GitHub Action to authenticate with hub.continue.dev. [Obtain your deploy key here](https://hub.continue.dev/settings/api-keys) and then [create a secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) named `CONTINUE_API_KEY` in your GitHub repository.
19
20### 3. Configure the GitHub Action
21
22<Check>
23 This step assumes you have already created an organization on
24 hub.continue.dev. If not, learn more [here](/hub/governance/creating-an-org).
25</Check>
26
27In the repository you created, navigate to `.github/workflows/main.yaml` and update the lines below to match your organization:
28
29```
30env: OWNER_SLUG: my-org-slug # <-- TODO
31```
32
33This is the only configuration necessary, but you can view the full list of options [here](https://github.com/continuedev/continue-publish-action/blob/main/README.md).
34
35### 4. Commit and push
36
37Add the [YAML for your agents and blocks](/reference) to the appropriate directories. The name of the file will be the slug of the agent/block.
38
39- `assistants/public` for public agents
40- `assistants/private` for private (visible only within your organization) agents
41- `blocks/public` for public blocks
42- `blocks/private` for private blocks
43
44Then, commit and push your changes. Once the GitHub Action has completed running, you should be able to view the agents within your organization on hub.continue.dev. For subsequent changes, make sure to increment the `version` property of your updated YAML file(s).