Skip to content

Commit

Permalink
ci: use github action
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Jun 20, 2024
1 parent 1d519e8 commit f1e18ba
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/typesense.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,20 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v4

- run: |
docker run -e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }} \
-e TYPESENSE_HOST=${{ secrets.TYPESENSE_HOST }} \
-e TYPESENSE_PORT=443 \
-e TYPESENSE_PROTOCOL=https \
-e "CONFIG=$(cat config/typesense.json | jq -r tostring)" typesense/docsearch-scraper:latest
- name: Run DocSearch Scraper
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/typesense.json

0 comments on commit f1e18ba

Please sign in to comment.