Skip to content

added env variable and responsive dom documentaton #747

added env variable and responsive dom documentaton

added env variable and responsive dom documentaton #747

name: Typesense crawler for prod
on:
push:
pull_request:
branches:
- main
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# environment: prod
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