Skip to content

Commit 54bf110

Browse files
authored
fix: Handle edge case for algolia updates (#10780)
1 parent c4f75ef commit 54bf110

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/algolia-index.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,11 @@ jobs:
3737
# and save some build time.
3838
- run: rm -r app/changelog
3939

40-
- run: yarn build
41-
if: steps.filter.outputs.docs == 'true'
42-
43-
- run: yarn build:developer-docs
44-
if: steps.filter.outputs.dev-docs == 'true'
45-
4640
# bun seems to be the most straightforward way to run a TypeScript script
4741
# without introducing another dependency like ts-node or tsx for everyone else
4842

49-
# build docs index
50-
- run: bun ./scripts/algolia.ts
43+
- name: Build index for user docs
44+
run: yarn build && bun ./scripts/algolia.ts
5145
if: steps.filter.outputs.docs == 'true'
5246
env:
5347
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
@@ -56,8 +50,8 @@ jobs:
5650
NEXT_PUBLIC_ALGOLIA_APP_ID: ${{ secrets.NEXT_PUBLIC_ALGOLIA_APP_ID }}
5751
NEXT_PUBLIC_ALGOLIA_SEARCH_KEY: ${{ secrets.NEXT_PUBLIC_ALGOLIA_SEARCH_KEY }}
5852

59-
# build dev docs index
60-
- run: bun ./scripts/algolia.ts
53+
- name: Build index for developer docs
54+
run: yarn build:developer-docs && bun ./scripts/algolia.ts
6155
if: steps.filter.outputs.dev-docs == 'true'
6256
env:
6357
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}

0 commit comments

Comments
 (0)