From ec5a002672a3bc72b71a12315e550ce951da25d8 Mon Sep 17 00:00:00 2001 From: daniel wasmus Date: Thu, 4 Sep 2025 12:43:35 +0200 Subject: [PATCH] feat: add vs sync workflow --- .github/workflows/sync-to-vs.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 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 00000000..b02f4f2d --- /dev/null +++ b/.github/workflows/sync-to-vs.yml @@ -0,0 +1,35 @@ +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 "mixedbread-python" \ + "**/*.py" \ + "**/*.md" \ + "**/*.mdx" \ + "**/*.txt" \ + "**/*.json" \ + --yes --strategy fast