diff --git a/.github/workflows/algolia.yml b/.github/workflows/algolia.yml deleted file mode 100644 index ec344801..00000000 --- a/.github/workflows/algolia.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Algolia Crawler - -on: - push: - branches: - - main - workflow_dispatch: - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - crawl: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v4 - - name: Wait for pages deployment - if: github.event_name != 'workflow_dispatch' - uses: lewagon/wait-on-check-action@v1.3.1 - with: - 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: - 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://fixinventory.org - crawler-name: inventory-fix diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6f12792c..85f125cb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,3 +46,12 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 + - name: Trigger Algolia crawl + uses: algolia/algoliasearch-crawler-github-actions@v1 + with: + 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://fixinventory.org + crawler-name: inventory-fix