Skip to content

Build: Add sitemap_urls to Typesense to fix some missing API pages #43

Build: Add sitemap_urls to Typesense to fix some missing API pages

Build: Add sitemap_urls to Typesense to fix some missing API pages #43

Workflow file for this run

name: typesense
on:
# Or after a deployment
push:
branches:
- main
# Or manually
workflow_dispatch:
jobs:
typesense:
name: Update Typesense
if: ${{ github.repository_owner == 'jquery' }} # skip on forks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docsearch Scraper
shell: bash
run: |
docker run \
-e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_ADMIN_KEY }} \
-e TYPESENSE_HOST="${{ secrets.TYPESENSE_HOST }}" \
-e TYPESENSE_PORT="443" \
-e TYPESENSE_PROTOCOL="https" \
-e CONFIG="$(cat docsearch.config.json | jq -r tostring)" \
typesense/docsearch-scraper:0.8.0