-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgithub_pages.yml
29 lines (26 loc) · 990 Bytes
/
github_pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Github Pages -> Algolia Crawler
on:
push:
branches: [ main ]
jobs:
algolia_recrawl:
name: Algolia Recrawl
runs-on: ubuntu-latest
steps:
# checkout this repo
- name: Checkout Repo
uses: actions/checkout@v2
# We don't know when the site will be deployed, we just wait a few seconds
# Better solutions can be found
- name: Sleep for 30s
run: sleep 30
- name: Github-pages-MAIN => Algolia crawler creation and recrawl (Push on Main branch)
uses: algolia/algoliasearch-crawler-github-actions@v1
id: crawler_push
with:
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
site-url: 'https://community.algolia.com/algoliasearch-crawler-github-actions/public/github-pages/'
override-config: true