Skip to content

ci: rename the folder name from react-docs to react in `ci-branch… #316

ci: rename the folder name from react-docs to react in `ci-branch…

ci: rename the folder name from react-docs to react in `ci-branch… #316

name: Algolia Search Indexing
on:
push:
branches:
- v2
workflow_dispatch:
env:
ALGOLIA_APPLICATION_ID: 7V00GBK8V8
ALGOLIA_INDEX: tonic-ui-v2
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install yarn
run: npm install -g yarn
- name: Install and build
run: |
yarn up
yarn install
yarn build
- name: Algolia search indexing
env:
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
run: |
cd packages/react-docs; ../../node_modules/.bin/babel-node scripts/algolia-search-indexing.js