JSX page content indexing (#620) #13
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: π Index Semantic Search (content) | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'content/blog/**' | |
| - 'content/pages/**' | |
| - 'content/data/**' | |
| - 'app/routes/**' | |
| - 'app/components/**' | |
| - 'app/root.tsx' | |
| - 'app/other-routes.server.ts' | |
| - 'app/utils/sitemap.server.ts' | |
| - 'other/semantic-search/**' | |
| jobs: | |
| index: | |
| name: π Index Semantic Search (content) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: β¬οΈ Checkout repo | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: β Setup node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: π₯ Download deps | |
| uses: bahmutov/npm-install@v1.11.2 | |
| - name: π Index changed content | |
| run: >- | |
| npx tsx other/semantic-search/index-repo-content.ts --before "${{ | |
| github.event.before }}" --after "${{ github.sha }}" | |
| env: | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_VECTORIZE_INDEX: ${{ secrets.CLOUDFLARE_VECTORIZE_INDEX }} | |
| CLOUDFLARE_AI_EMBEDDING_MODEL: | |
| ${{ secrets.CLOUDFLARE_AI_EMBEDDING_MODEL }} | |
| R2_BUCKET: ${{ secrets.R2_BUCKET }} |