Skip to content

chore: 콘텐츠 서브모듈 자동 업데이트 #30

chore: 콘텐츠 서브모듈 자동 업데이트

chore: 콘텐츠 서브모듈 자동 업데이트 #30

Workflow file for this run

name: Auto Embeddings
on:
push:
branches: [main]
paths:
- 'content'
workflow_dispatch:
jobs:
embeddings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Generate & upsert embeddings
env:
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}
run: npx tsx scripts/generate-embeddings.ts