Skip to content

Commit a9dc39f

Browse files
committed
fix: wait for pages, not netlify
1 parent 5afbd5d commit a9dc39f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/algolia.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
steps:
1717
- name: Check out repository
1818
uses: actions/checkout@v4
19-
- name: Wait for Netlify deployment
19+
- name: Wait for pages deployment
2020
if: github.event_name != 'workflow_dispatch'
21-
uses: probablyup/wait-for-netlify-action@3.2.0
21+
uses: lewagon/wait-on-check-action@v1.3.1
2222
with:
23-
site_id: ${{ secrets.NETLIFY_SITE_ID }}
24-
env:
25-
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
23+
ref: ${{ github.ref }}
24+
check-name: Deploy to GitHub Pages
25+
repo-token: ${{ secrets.GITHUB_TOKEN }}
2626
- name: Trigger Algolia crawl
2727
uses: algolia/algoliasearch-crawler-github-actions@v1
2828
with:

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
path: build
3030

3131
deploy:
32+
# when you change the name of this job, also update the algolia workflow
3233
name: Deploy to GitHub Pages
3334
needs: build
3435

0 commit comments

Comments
 (0)