Skip to content

Commit d636ccb

Browse files
committed
feat: update search CI action
1 parent 920eef6 commit d636ccb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update Mintlify Search
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.head_ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push
9+
10+
jobs:
11+
run:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: "18"
21+
22+
- name: Install Mintlify Search Adapter
23+
run: npm install -g @mintlify/search-ingest
24+
25+
- name: Update Mintlify Chunks
26+
env:
27+
MINTLIFY_API_HOST: ${{ secrets.MINTLIFY_API_HOST }}
28+
MINTLIFY_API_KEY: ${{ secrets.MINTLIFY_API_KEY }}
29+
MINTLIFY_ORGANIZATION_ID: ${{ secrets.MINTLIFY_ORGANIZATION_ID }}
30+
MINTLIFY_DATASET_ID: ${{ secrets.MINTLIFY_DATASET_ID }}
31+
NODE_OPTIONS: --max-old-space-size=8192
32+
run: "mintlify-search-ingest --path . -r https://cursor.com/docs"

0 commit comments

Comments
 (0)