Skip to content

Commit cb4c6e5

Browse files
committed
workflows: automatically refresh algolia index on new deploys
Signed-off-by: Luca Zeuch <[email protected]>
1 parent 012adb5 commit cb4c6e5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/algolia.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Refresh Algolia Index
3+
4+
on:
5+
deployment:
6+
7+
jobs:
8+
refresh:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- if: ${{ github.event.environment == 'github-pages' }}
12+
uses: algolia/[email protected]
13+
id: algolia_crawler
14+
with: # mandatory parameters
15+
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
16+
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
17+
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
18+
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
19+
crawler-name: 'help-yagpdb'
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
site-url: 'https://help.yagpdb.xyz'

0 commit comments

Comments
 (0)