Crawl and index to Algolia #10
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: Crawl and index to Algolia | |
on: | |
workflow_dispatch: | |
permissions: | |
pages: write | |
contents: read | |
id-token: write | |
jobs: | |
index: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get DocSearch config | |
id: algolia_config | |
run: echo "config=$(cat _crawl/algolia-crawler-config.json | jq -r tostring)" >> $GITHUB_OUTPUT | |
- name: Index to Algolia | |
uses: signcl/[email protected] | |
env: | |
APPLICATION_ID: ${{ secrets.ALGOLIA_APP_ID }} | |
API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | |
CONFIG: ${{ steps.algolia_config.outputs.config }} |