Skip to content

Commit ce87a76

Browse files
authored
Merge pull request #26 from netwrix/feature/search
Feature/search
2 parents 9d8f504 + 94c6519 commit ce87a76

File tree

308 files changed

+4224
-28079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

308 files changed

+4224
-28079
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Reindex Algolia
2+
3+
on:
4+
# Manual trigger with inputs
5+
workflow_dispatch:
6+
7+
# Automatic triggers
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- 'docs/**'
13+
- 'src/**'
14+
- 'static/**'
15+
- 'docusaurus.config.js'
16+
- 'sidebars/**'
17+
- 'package.json'
18+
jobs:
19+
reindex-algolia:
20+
name: Reindex Algolia Search
21+
runs-on: ubuntu-latest
22+
# Only run if push to main/master or manual trigger or scheduled
23+
if: |
24+
github.event_name == 'workflow_dispatch' ||
25+
(github.event_name == 'push' && contains(fromJson('["main", "master"]'), github.ref_name)) ||
26+
steps:
27+
- name: Algolia crawler creation and crawl
28+
uses: algolia/[email protected]
29+
id: algolia_crawler
30+
with: # mandatory parameters
31+
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
32+
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
33+
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
34+
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
35+
site-url: 'https://product-docs-prod.onrender.com/'

0 commit comments

Comments
 (0)