|
|
@ -3,7 +3,9 @@ name: "Publish : Docs search index (Typesense)" |
|
|
|
on: |
|
|
|
on: |
|
|
|
# Triggered manually |
|
|
|
# Triggered manually |
|
|
|
workflow_dispatch: |
|
|
|
workflow_dispatch: |
|
|
|
|
|
|
|
repository_dispatch: |
|
|
|
|
|
|
|
types: trigger-docs-index |
|
|
|
|
|
|
|
|
|
|
|
jobs: |
|
|
|
jobs: |
|
|
|
doc-indexer: |
|
|
|
doc-indexer: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
runs-on: ubuntu-latest |
|
|
@ -15,12 +17,12 @@ jobs: |
|
|
|
uses: celsiusnarhwal/typesense-scraper@v2 |
|
|
|
uses: celsiusnarhwal/typesense-scraper@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
# The secret containing your Typesense API key. Required. |
|
|
|
# The secret containing your Typesense API key. Required. |
|
|
|
api-key: ${{ secrets.TYPESENSE_API_KEY }} |
|
|
|
api-key: ${{ secrets.TYPESENSE_API_KEY }} |
|
|
|
# The hostname or IP address of your Typesense server. Required. |
|
|
|
# The hostname or IP address of your Typesense server. Required. |
|
|
|
host: ${{ secrets.TYPESENSE_HOST }} |
|
|
|
host: ${{ secrets.TYPESENSE_HOST }} |
|
|
|
# The port on which your Typesense server is listening. Optional. Default: 8108. |
|
|
|
# The port on which your Typesense server is listening. Optional. Default: 8108. |
|
|
|
port: 443 |
|
|
|
port: 443 |
|
|
|
# The protocol to use when connecting to your Typesense server. Optional. Default: http. |
|
|
|
# The protocol to use when connecting to your Typesense server. Optional. Default: http. |
|
|
|
protocol: https |
|
|
|
protocol: https |
|
|
|
# The path to your DocSearch config file. Optional. Default: docsearch.config.json. |
|
|
|
# The path to your DocSearch config file. Optional. Default: docsearch.config.json. |
|
|
|
config: ./packages/noco-docs/typesense-scrape-config.json |
|
|
|
config: ./packages/noco-docs/typesense-scrape-config.json |
|
|
|