Skip to content

Commit

Permalink
ci: trigger crawler after deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
zyf722 committed Apr 23, 2024
1 parent c4b79cc commit d63f243
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,20 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

crawl:
name: Crawl the website
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Algolia crawler
uses: algolia/algoliasearch-crawler-github-actions@v1
id: algolia_crawler
with: # mandatory parameters
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
site-url: 'https://zyf722.github.io/max-notes'
crawler-name: 'zyf722io'

0 comments on commit d63f243

Please sign in to comment.