-
-
Notifications
You must be signed in to change notification settings - Fork 158
38 lines (36 loc) · 977 Bytes
/
algolia.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Algolia
on:
push:
branches:
- master
jobs:
sync:
name: Sync
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install
run: yarn install --immutable
- name: Generate documentation
run: yarn gendocs
- name: Build website
run: yarn workspace website build
- name: Sync
working-directory: website
run: node scripts/algolia-sync.mjs
env:
ALGOLIA_APP_ID: ANRJKXZTRW
ALGOLIA_INDEX_NAME: searchv2_main
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
SITE_URL: https://the-guild.dev/graphql/ws
- name: Upload lockfile
uses: actions/upload-artifact@v3
with:
name: algolia-lockfile
path: website/algolia-lockfile.json