Skip to content

algolia_search_index #1

algolia_search_index

algolia_search_index #1

name: algolia_search_index
on:
schedule:
- cron: 30 17 * * *
push:
branches:
- 'gh-pages'
paths:
- '**/*.html'
pull_request:
paths:
- '**/*.html'
# Trigger the workflow on manual dispatch
workflow_dispatch:
jobs:
algolia_search_index:
runs-on: ubuntu-latest
steps:
- name: Algolia crawler creation and crawl
uses: algolia/[email protected]
id: algolia_crawler
with: # mandatory parameters
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
site-url: 'https://www.neurodesk.org/example-notebooks'