Merge pull request #1067 from Ishavyas9/main #764
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |