docsearch.yml 592 B

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