Skip to content

Commit

Permalink
Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Sep 5, 2023
1 parent 3a2daa4 commit 9c7d382
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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

0 comments on commit 9c7d382

Please sign in to comment.