diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 463d0f9b5a..131ccccddb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -52,7 +52,7 @@ jobs: id: deployment uses: actions/deploy-pages@v1 - generate-index-and-tutorials-collection: + generate-index: needs: build if: github.repository_owner == 'viamrobotics' runs-on: [self-hosted, x64] @@ -74,13 +74,5 @@ jobs: echo TYPESENSE_PORT=443 >> typesense.env echo TYPESENSE_PROTOCOL=https >> typesense.env - - name: Upload tutorials documents - run: | - jq -c '.[]' ./public/tutorials/typesense.json > documents.jsonl - curl -H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \ - -X POST \ - -T documents.jsonl \ - "https://cgnvrk0xwyj9576lp-1.a1.typesense.net/collections/tutorials/documents/import?action=upsert" - - name: Index run: docker run --env-file=typesense.env -e "CONFIG=$(cat docsearch.json)" typesense/docsearch-scraper