Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/search-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Vercel -> Algolia Crawler (main)
on:
push:
branches: [main]

jobs:
algolia_recrawl:
name: Algolia recrawl
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Vercel-Main => Algolia crawler creation and recrawl on preview (Main branch)
uses: algolia/algoliasearch-crawler-github-actions@v1
id: crawler_push
with:
crawler-user-id: ${{ secrets.ALGOLIA_CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.ALGOLIA_CRAWLER_API_KEY }}
algolia-app-id: 'E57FOT37U9'
algolia-api-key: ${{ secrets.ALGOLIA_APP_API_KEY }}
site-url: 'https://algoliasearch-crawler-github-actions.vercel.app/'
override-config: true
28 changes: 28 additions & 0 deletions .github/workflows/search-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Vercel -> Algolia Crawler (PR)
on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
algolia_recrawl:
name: Algolia recrawl
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Get deployment URL from Vercel
id: deployment
uses: dorshinar/get-deployment-url@master
timeout-minutes: 1
with:
token: ${{ github.token }}
- name: Vercel-PR => Algolia crawler creation and recrawl on preview (Pull Request)
uses: webbertakken/algoliasearch-crawler-github-actions@4f4c4db12be599fbc3f407ff6d608461c09a8f6a
id: crawler_pr
with:
crawler-user-id: ${{ secrets.ALGOLIA_CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.ALGOLIA_CRAWLER_API_KEY }}
algolia-app-id: 'E57FOT37U9'
algolia-api-key: ${{ secrets.ALGOLIA_APP_API_KEY }}
site-url: '${{ steps.deployment.outputs.deployment }}'
override-config: true
14 changes: 0 additions & 14 deletions .github/workflows/search-trigger.yml

This file was deleted.