diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 1e7988a2..71a50371 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -35,3 +35,14 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action + + crawl: + needs: deploy + runs-on: ubuntu-latest + steps: + - name: 'Algolia Crawler' + uses: cssnr/algolia-crawler-action@v1 + with: + crawler_id: ${{ secrets.CRAWLER_ID }} + crawler_user_id: ${{ secrets.CRAWLER_USER_ID }} + crawler_api_key: ${{ secrets.CRAWLER_API_KEY }} diff --git a/.github/workflows/test-crawl-pr.yml b/.github/workflows/test-crawl-pr.yml new file mode 100644 index 00000000..a1c4fda0 --- /dev/null +++ b/.github/workflows/test-crawl-pr.yml @@ -0,0 +1,17 @@ +name: Test crawl on PRs + +on: + pull_request: + types: [opened, reopened, synchronize] + +jobs: + + crawl: + runs-on: ubuntu-latest + steps: + - name: 'Algolia Crawler' + uses: cssnr/algolia-crawler-action@v1 + with: + crawler_id: ${{ secrets.CRAWLER_ID }} + crawler_user_id: ${{ secrets.CRAWLER_USER_ID }} + crawler_api_key: ${{ secrets.CRAWLER_API_KEY }}