Create algolia-scraper.yml #1
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
name: Algolia Scraper | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "main" ] | |
jobs: | |
crawler: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use docsearch-scraper | |
uses: docker://algolia/docsearch-scraper | |
- run: sudo apt-get install jq -y | |
- name: Run crawler | |
run: | | |
export CONFIG=$(cat ./search_configs/site.json | jq -r tostring) | |
cd ../ | |
pipenv run python -m src.index |