Skip to content

Merge branch 'develop' of github.com:scroll-tech/scroll-documentation… #469

Merge branch 'develop' of github.com:scroll-tech/scroll-documentation…

Merge branch 'develop' of github.com:scroll-tech/scroll-documentation… #469

name: Update algolia index
on: [push]
jobs:
update-prod-index:
if: ${{ github.ref == 'refs/heads/prod' }}
name: Update algolia index -- Prod
runs-on: ubuntu-latest
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_WRITE_API_KEY: ${{ secrets.ALGOLIA_WRITE_API_KEY }}
ALGOLIA_INDEX_NAME: prod_scroll-docs
defaults:
run:
working-directory: ./
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Dependencies
run: npm i
- name: Build
run: npm run build
- name: Update index
run: npm run update-algolia-index
update-dev-index:
if: ${{ github.ref == 'refs/heads/develop' }}
name: Update algolia index -- Dev
runs-on: ubuntu-latest
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_WRITE_API_KEY: ${{ secrets.ALGOLIA_WRITE_API_KEY }}
ALGOLIA_INDEX_NAME: dev_scroll-docs
defaults:
run:
working-directory: ./
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install Dependencies
run: npm i
- name: Build
run: npm run build
- name: Update index
run: npm run update-algolia-index