mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-06 21:54:01 -05:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Process Docs Embeddings
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch: # Allow manual triggering
|
|
|
|
jobs:
|
|
process-docs-embeddings:
|
|
name: Process Documentation Embeddings
|
|
runs-on: blacksmith-8vcpu-ubuntu-2404
|
|
if: github.ref == 'refs/heads/main'
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: 1.3.3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: latest
|
|
|
|
- name: Cache Bun dependencies
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.bun/install/cache
|
|
node_modules
|
|
**/node_modules
|
|
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-bun-
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Process docs embeddings
|
|
working-directory: ./apps/sim
|
|
env:
|
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
run: bun run scripts/process-docs.ts --clear
|