Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/reindex-typesense.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Reindex TypeSense

on:
release:
types: [prereleased, published]
jobs:
reindex:
name: Reindex docs in TypeSense
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Reindex with docsearch-scraper
run: |
docker run \
-e "TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }}" \
-e "TYPESENSE_HOST=${{ secrets.TYPESENSE_HOST }}" \
-e "TYPESENSE_PORT=443" \
-e "TYPESENSE_PROTOCOL=https" \
-e "CONFIG=$(cat docs/typesense.config.json | jq -r tostring)" \
typesense/docsearch-scraper:0.11.0