Explorar o código

chore: Setup docsearch workflow attempt 1

Michael Bromley %!s(int64=2) %!d(string=hai) anos
pai
achega
0ae3f0bb0c
Modificáronse 1 ficheiros con 25 adicións e 0 borrados
  1. 25 0
      .github/workflows/docsearch.yml

+ 25 - 0
.github/workflows/docsearch.yml

@@ -0,0 +1,25 @@
+name: Index docs to Typesense
+
+on:
+  push:
+    branches:
+      - docs
+
+jobs:
+  index_docs:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@v2
+
+      # Add your desired actions here
+      - name: Your Action Name
+        run: |
+          docker run \
+            -e TYPESENSE_API_KEY=${{ vars.TYPESENSE_API_KEY }} \
+            -e TYPESENSE_HOST="${{ vars.TYPESENSE_HOST }}" \
+            -e TYPESENSE_PORT="443" \
+            -e TYPESENSE_PROTOCOL="https" \
+            -e CONFIG="$(cat docs/scraper/config.json | jq -r tostring)" \
+            typesense/docsearch-scraper