mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 09:16:45 +00:00
20 lines
795 B
YAML
20 lines
795 B
YAML
name: ❤️ Generate Algolia serach indicies in JSON & push to Algolia
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
algolia:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: 🐳 Generate the content of algolia.json as config
|
|
id: algolia_config
|
|
run: echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT # crawl off the index content from site
|
|
- name: 🥙 Push indices to Algolia
|
|
uses: signcl/docsearch-scraper-action@master
|
|
env:
|
|
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
|
|
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
|
|
CONFIG: ${{ steps.algolia_config.outputs.config }}
|