Skip to content

Commit 489331d

Browse files
authored
Initial commit
0 parents  commit 489331d

File tree

6 files changed

+66
-0
lines changed

6 files changed

+66
-0
lines changed

.github/workflows/main.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Publish Continue Assistant/Block(s)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- blocks/**
9+
- assistants/**
10+
- .github/workflows/main.yaml
11+
12+
env:
13+
OWNER_SLUG: my-org-slug # <-- TODO
14+
15+
jobs:
16+
publish:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
# Public blocks
22+
- uses: continuedev/continue-publish-action@v1
23+
with:
24+
owner-slug: ${{ env.OWNER_SLUG }}
25+
paths: blocks/public/**
26+
api-key: ${{ secrets.CONTINUE_API_KEY }}
27+
28+
# Public assistants
29+
- uses: continuedev/continue-publish-action@v1
30+
with:
31+
owner-slug: ${{ env.OWNER_SLUG }}
32+
paths: assistants/public/**
33+
is-assistant: true
34+
api-key: ${{ secrets.CONTINUE_API_KEY }}
35+
36+
# Private to organization blocks
37+
- uses: continuedev/continue-publish-action@v1
38+
with:
39+
owner-slug: ${{ env.OWNER_SLUG }}
40+
paths: blocks/private/**
41+
visibility: organization
42+
api-key: ${{ secrets.CONTINUE_API_KEY }}
43+
44+
# Private to organization assistants
45+
- uses: continuedev/continue-publish-action@v1
46+
with:
47+
owner-slug: ${{ env.OWNER_SLUG }}
48+
paths: assistants/private/**
49+
is-assistant: true
50+
visibility: organization
51+
api-key: ${{ secrets.CONTINUE_API_KEY }}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# hub.continue.dev source control template
2+
3+
This repository is a template for managing your custom assistants and blocks on hub.continue.dev. For a quickstart guide, read the docs at https://docs.continue.dev/hub/source-control.

assistants/private/info.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This directory stores all of the assistants that you want to be visible only within your organization.
2+
3+
To learn more about assistants, see [the docs](https://docs.continue.dev/hub/assistants/intro).

assistants/public/info.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This directory stores all of your public assistants.
2+
3+
To learn more about assistants, see [the docs](https://docs.continue.dev/hub/assistants/intro).

blocks/private/info.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This directory stores all of the blocks that you want to be visible only within your organization.
2+
3+
To learn more about blocks, see [the docs](https://docs.continue.dev/hub/blocks/intro).

blocks/public/info.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This directory stores all of your public blocks.
2+
3+
To learn more about blocks, see [the docs](https://docs.continue.dev/hub/blocks/intro).

0 commit comments

Comments
 (0)