docsearch.yml 783 B

12345678910111213141516171819202122232425262728
  1. name: Index docs to Typesense
  2. on:
  3. push:
  4. branches:
  5. - master
  6. paths:
  7. - 'docs/**'
  8. jobs:
  9. index_docs:
  10. runs-on: ubuntu-latest
  11. permissions:
  12. contents: read
  13. steps:
  14. - name: Checkout code
  15. uses: actions/checkout@v4
  16. - name: Index docs to Typesense
  17. run: |
  18. docker run \
  19. -e TYPESENSE_API_KEY=${{ vars.TYPESENSE_API_KEY }} \
  20. -e TYPESENSE_HOST="${{ vars.TYPESENSE_HOST }}" \
  21. -e TYPESENSE_PORT="443" \
  22. -e TYPESENSE_PROTOCOL="https" \
  23. -e CONFIG="$(cat docs/scraper/config.json | jq -r tostring)" \
  24. typesense/docsearch-scraper