Skip to content

Commit

Permalink
chore: Setup docsearch workflow attempt 1
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Oct 9, 2023
1 parent a5bc0c1 commit 0ae3f0b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docsearch.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0ae3f0b

Please sign in to comment.