Skip to content

Commit

Permalink
fix: wait for pages, not netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Dec 5, 2024
1 parent 5afbd5d commit a9dc39f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/algolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Wait for Netlify deployment
- name: Wait for pages deployment
if: github.event_name != 'workflow_dispatch'
uses: probablyup/wait-for-netlify-action@3.2.0
uses: lewagon/wait-on-check-action@v1.3.1
with:
site_id: ${{ secrets.NETLIFY_SITE_ID }}
env:
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
ref: ${{ github.ref }}
check-name: Deploy to GitHub Pages
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger Algolia crawl
uses: algolia/algoliasearch-crawler-github-actions@v1
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
path: build

deploy:
# when you change the name of this job, also update the algolia workflow
name: Deploy to GitHub Pages
needs: build

Expand Down

0 comments on commit a9dc39f

Please sign in to comment.