Skip to content

Commit 05d7db6

Browse files
committed
fix: make algolia a separate job after deploy
1 parent 6f842cb commit 05d7db6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,35 @@ jobs:
1717
with:
1818
node-version: 18
1919
cache: yarn
20-
2120
- name: Install dependencies
2221
run: yarn install --frozen-lockfile
2322
- name: Build website
2423
run: yarn build
25-
2624
- name: Upload Build Artifact
2725
uses: actions/upload-pages-artifact@v3
2826
with:
2927
path: build
3028

3129
deploy:
32-
# when you change the name of this job, also update the algolia workflow
3330
name: Deploy to GitHub Pages
3431
needs: build
35-
3632
permissions:
3733
pages: write
3834
id-token: write
39-
4035
environment:
4136
name: github-pages
4237
url: ${{ steps.deployment.outputs.page_url }}
43-
4438
runs-on: ubuntu-latest
4539
steps:
4640
- name: Deploy to GitHub Pages
4741
id: deployment
4842
uses: actions/deploy-pages@v4
43+
44+
search-index:
45+
name: Update the Search Index
46+
needs: deploy
47+
runs-on: ubuntu-latest
48+
steps:
4949
- name: Trigger Algolia crawl
5050
uses: algolia/algoliasearch-crawler-github-actions@v1
5151
with:

0 commit comments

Comments
 (0)