Skip to content

JSX page content indexing (#620) #13

JSX page content indexing (#620)

JSX page content indexing (#620) #13

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 }}