Index site #787
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |