-
-
Notifications
You must be signed in to change notification settings - Fork 137
33 lines (26 loc) · 802 Bytes
/
sync.yml
File metadata and controls
33 lines (26 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Sync Mixedbread Vector Store
on:
workflow_dispatch:
push:
branches: [main]
paths: [content/src/content/docs/**/*.mdx]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/setup
with:
working-directory: ./content
- name: Sync vector store
shell: bash
working-directory: ./content
env:
MXBAI_API_KEY: ${{ secrets.MXBAI_API_KEY }}
MXBAI_VECTOR_STORE_ID: ${{ secrets.MXBAI_VECTOR_STORE_ID }}
run: pnpm mxbai vs sync "${MXBAI_VECTOR_STORE_ID}" "src/content/docs/docs/**/*.mdx" --yes --strategy fast