Skip to content

Merge pull request #1037 from Aman1905/stage #1280

Merge pull request #1037 from Aman1905/stage

Merge pull request #1037 from Aman1905/stage #1280

name: Typesense crawler for stage
on:
push:
pull_request:
branches:
- stage
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# environment: stage
steps:
- name: Checkout Repository
uses: actions/checkout@v3 # You MUST checkout your repository first!
- name: Run DocSearch Scraper
# env:
# API_KEY: ${{ secrets.TYPESENSE_API_KEY }}
# HOST: ${{ secrets.TYPESENSE_HOST }}
uses: celsiusnarhwal/typesense-scraper@v2
with:
# The secret containing your Typesense API key. Required.
api-key: ${{ secrets.TYPESENSE_API_KEY }}
# The hostname or IP address of your Typesense server. Required.
host: ${{ secrets.TYPESENSE_HOST }}
# The port on which your Typesense server is listening. Optional. Default: 8108.
port: 443
# The protocol to use when connecting to your Typesense server. Optional. Default: http.
protocol: https
# The path to your DocSearch config file. Optional. Default: docsearch.config.json.
config: config.json
# run: |
# cat config.json
# docker run -it --env-file=.env -e "CONFIG=$(cat config.json | jq -r tostring)" typesense/docsearch-scraper:0.9.1