Skip to content

Commit

Permalink
fix: make algolia a separate job after deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Dec 5, 2024
1 parent 6f842cb commit 05d7db6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,35 @@ jobs:
with:
node-version: 18
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build website
run: yarn build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

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

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

search-index:
name: Update the Search Index
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Trigger Algolia crawl
uses: algolia/algoliasearch-crawler-github-actions@v1
with:
Expand Down

0 comments on commit 05d7db6

Please sign in to comment.