Skip to content

Index site

Index site #815

Workflow file for this run

# This workflow runs a web scraper that indexes the documentation site and uploads that index to Algolia
# at the end of every day.
name: Index site
on:
schedule:
- cron: "0 0 1,15 * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }}
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
steps:
- uses: actions/checkout@v3
- run: |
docker run -e APPLICATION_ID=$APPLICATION_ID -e API_KEY=$API_KEY -e "CONFIG=$(cat search-config.json | jq -r tostring)" algolia/docsearch-scraper