Skip to content

Commit d1c594e

Browse files
authored
Orama Sync Github Actions (#663)
1 parent 3dbda57 commit d1c594e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/orama_sync.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Sync Orama
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "**.mdx"
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: lts
20+
cache: pnpm
21+
- uses: pnpm/action-setup@v3
22+
with:
23+
version: 8
24+
- name: Install dependencies
25+
run: pnpm i
26+
- name: Sync Orama
27+
run: pnpm sync:orama
28+
env:
29+
ORAMA_PRIVATE_API_KEY: ${{ secrets.ORAMA_PRIVATE_API_KEY }}
30+
ORAMA_PRIVATE_INDEX_ID: ${{ secrets.ORAMA_PRIVATE_INDEX_ID }}

0 commit comments

Comments
 (0)