Skip to content

Merge pull request #1086 from Ishavyas9/DocStage #1351

Merge pull request #1086 from Ishavyas9/DocStage

Merge pull request #1086 from Ishavyas9/DocStage #1351

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