Skip to content

Run algolia docsearch #530

Run algolia docsearch

Run algolia docsearch #530

Workflow file for this run

name: Run algolia docsearch
on:
push:
branches:
- 'ci/docsearch'
- main
schedule:
- cron: '0 12 * * 1'
jobs:
docsearch:
runs-on: ubuntu-latest
if: github.repository == 'dyte-io/docs'
steps:
- uses: actions/checkout@v2
- name: Setup environment
run: |
echo "APPLICATION_ID=$APPLICATION_ID" >> .env
echo "API_KEY=$API_KEY" >> .env
chmod +x ./bin/crawl.sh
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_DOCSEARCH_APP_ID }}
API_KEY: ${{ secrets.ALGOLIA_DOCSEARCH_API_KEY }}
- name: Run docsearch
continue-on-error: true
run: |
./bin/crawl.sh