From 1303f3546800aba769f25aec0432c7fa8f3ba21a Mon Sep 17 00:00:00 2001 From: Tim McMackin Date: Wed, 15 Oct 2025 08:02:08 -0400 Subject: [PATCH 1/2] Crawl automatically on publishing --- .github/workflows/deploy-production.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 }} From 005cca1cda10568920549c41b4081d19137b954b Mon Sep 17 00:00:00 2001 From: Tim McMackin Date: Wed, 15 Oct 2025 08:07:17 -0400 Subject: [PATCH 2/2] Test of crawl on this PR --- .github/workflows/test-crawl-pr.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/test-crawl-pr.yml 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 }}