From df51fa0497b3cc2e9a2588fb4e3653137e13a37e Mon Sep 17 00:00:00 2001 From: daniel wasmus Date: Thu, 4 Sep 2025 12:40:46 +0200 Subject: [PATCH 1/2] feat: add vs sync workflow --- .github/workflows/sync-to-vs.yml | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/sync-to-vs.yml diff --git a/.github/workflows/sync-to-vs.yml b/.github/workflows/sync-to-vs.yml new file mode 100644 index 0000000..6177aa2 --- /dev/null +++ b/.github/workflows/sync-to-vs.yml @@ -0,0 +1,36 @@ +name: Sync to Vector Store + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + + - name: Install mixedbread CLI globally + run: npm install -g @mixedbread/cli + + - name: Sync vector store + env: + MXBAI_API_KEY: ${{ secrets.MXBAI_API_KEY }} + run: | + mxbai vs sync "deployment-test" \ + "**/*.ts" \ + "**/*.js" \ + "**/*.md" \ + "**/*.mdx" \ + "**/*.txt" \ + "**/*.json" \ + --yes --strategy fast From a0a7862134d08ec24d2158f2517e7d19b10d1bef Mon Sep 17 00:00:00 2001 From: daniel wasmus Date: Thu, 4 Sep 2025 12:43:06 +0200 Subject: [PATCH 2/2] chore: update vs name --- .github/workflows/sync-to-vs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-to-vs.yml b/.github/workflows/sync-to-vs.yml index 6177aa2..fee8758 100644 --- a/.github/workflows/sync-to-vs.yml +++ b/.github/workflows/sync-to-vs.yml @@ -26,7 +26,7 @@ jobs: env: MXBAI_API_KEY: ${{ secrets.MXBAI_API_KEY }} run: | - mxbai vs sync "deployment-test" \ + mxbai vs sync "openbread" \ "**/*.ts" \ "**/*.js" \ "**/*.md" \