Build Search Index #229
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: Build Search Index | |
on: | |
workflow_dispatch: | |
# Manually hit button. Ideally this should be triggered automatically, | |
# after a build/deploy step, but it's not worth it to make a custom build | |
# right now. | |
jobs: | |
build-index: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Scrape and index docs | |
env: | |
HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }} | |
API_KEY: ${{ secrets.MEILISEARCH_WRITE_API_KEY }} | |
CONFIG_FILE_PATH: ${{ github.workspace }}/meilisearch-docs-scraper.config.json | |
run: | | |
docker run -t --rm \ | |
-e MEILISEARCH_HOST_URL=$HOST_URL \ | |
-e MEILISEARCH_API_KEY=$API_KEY \ | |
-v $CONFIG_FILE_PATH:/docs-scraper/config.json \ | |
getmeili/docs-scraper:latest pipenv run ./docs_scraper config.json |