Skip to content

Commit

Permalink
fix: update-trieve should use turbo build (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Nov 9, 2024
1 parent e8a110c commit f74439f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- main
paths:
- apps/registry/**
- .github/workflows/**

jobs:
Deploy-Production:
Expand All @@ -27,6 +28,14 @@ jobs:
node-version: 20
cache: "pnpm"

- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install Vercel CLI
run: npm install --global vercel@latest

Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/update-trieve.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update Trieve Index
buname: Update Trieve Index
env:
TRIEVE_ADMIN_API_KEY: ${{ secrets.TRIEVE_ADMIN_API_KEY }}
TRIEVE_DATASET_ID: ${{ secrets.TRIEVE_DATASET_ID }}
Expand All @@ -8,6 +8,7 @@ on:
- main
paths:
- apps/docs/content/**
- .github/workflows/**

jobs:
Upload-Trieve:
Expand All @@ -27,12 +28,20 @@ jobs:
node-version: 20
cache: "pnpm"

- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build docs
working-directory: apps/docs
run: pnpm build
run: pnpm turbo build

- name: Update Index
working-directory: apps/docs
Expand Down

0 comments on commit f74439f

Please sign in to comment.