blog/twie_2025_12_26 (#1267) #51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |