-
Notifications
You must be signed in to change notification settings - Fork 655
47 lines (43 loc) · 1.33 KB
/
Copy pathindex-semantic-content.yml
File metadata and controls
47 lines (43 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }}