docsearch.yml 627 B

1234567891011121314151617181920212223242526
  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. steps:
  12. - name: Checkout code
  13. uses: actions/checkout@v2
  14. - name: Index docs to Typesense
  15. run: |
  16. docker run \
  17. -e TYPESENSE_API_KEY=${{ vars.TYPESENSE_API_KEY }} \
  18. -e TYPESENSE_HOST="${{ vars.TYPESENSE_HOST }}" \
  19. -e TYPESENSE_PORT="443" \
  20. -e TYPESENSE_PROTOCOL="https" \
  21. -e CONFIG="$(cat docs/scraper/config.json | jq -r tostring)" \
  22. typesense/docsearch-scraper