Skip to content

Merge pull request #285 from LinkunGao/major/v2.0.0 #20

Merge pull request #285 from LinkunGao/major/v2.0.0

Merge pull request #285 from LinkunGao/major/v2.0.0 #20

Workflow file for this run

name: algolia
on:
push:
branches:
- main
jobs:
algolia:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Change directory to apidocs
run: cd apidocs
- name: Get the content of algolia.json as config
id: algolia_config
run: |
pwd
ls
cd apidocs/
echo "config=$(cat crawlerConfig.json | jq -r tostring)" >> $GITHUB_OUTPUT
- name: Push indices to Algolia
uses: signcl/docsearch-scraper-action@master
env:
APPLICATION_ID: ${{ secrets.COPPER3D_ALGOLIA_APPLICATION_ID}}
API_KEY: ${{ secrets.COPPER3D_ALGOLIA_API_KEY }}
CONFIG: ${{ steps.algolia_config.outputs.config }}