Skip to content

Commit

Permalink
scrape workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nialexsan committed Aug 2, 2023
1 parent cd2e119 commit 892909a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/scrape.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: DocSearch Scraper

on:
workflow_dispatch:

env:
ALGOLIA_APP_ID: ${{vars.ALGOLIA_APP_ID}}
TYPESENSE_NODE: ${{vars.TYPESENSE_NODE}}
TYPESENSE_SEARCH_ONLY_API_KEY: ${{secrets.TYPESENSE_SEARCH_ONLY_API_KEY}}

jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Run DocSearch Scraper
uses: celsiusnarhwal/typesense-scraper@v2
with:
# The secret containing your Typesense API key. Required.
api-key: ${{ secrets.TYPESENSE_ADMIN_API_KEY }}

# The hostname or IP address of your Typesense server. Required.
host: ${{vars.TYPESENSE_NODE}}

# The port on which your Typesense server is listening. Optional. Default: 8108.
port: 8108

# The protocol to use when connecting to your Typesense server. Optional. Default: http.
protocol: http

# The path to your DocSearch config file. Optional. Default: docsearch.config.json.
config: docsearch.config.json

0 comments on commit 892909a

Please sign in to comment.