From 872c05a450128f66aef162fef97a6f36dcc80977 Mon Sep 17 00:00:00 2001 From: mxsm Date: Sat, 1 Feb 2025 15:43:56 +0800 Subject: [PATCH] [ISSUE #2477] Update jekyll-gh-pages.yml action --- .github/workflows/jekyll-gh-pages.yml | 29 ++++++++++++++++----------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 3aecdf3a..1b81d797 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -52,17 +52,22 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 - - - name: Algolia crawler creation and crawl - uses: algolia/algoliasearch-crawler-github-actions@v1.0.10 - id: algolia_crawler - with: #https://github.com/marketplace/actions/algolia-crawler-automatic-crawl - 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 }} - crawler-name: 'rocketmq-rust.ljbmxsm.com_A7P4XEL1X0' - site-url: 'https://rocketmq-rust.ljbmxsm.com' - override-config: true + - name: Update Algolia index + working-directory: rocketmq-doc/ + run: bundle exec jekyll algolia push + env: + ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} + continue-on-error: true +# - name: Algolia crawler creation and crawl +# uses: algolia/algoliasearch-crawler-github-actions@v1.0.10 +# id: algolia_crawler +# with: #https://github.com/marketplace/actions/algolia-crawler-automatic-crawl +# 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 }} +# crawler-name: 'rocketmq-rust.ljbmxsm.com_A7P4XEL1X0' +# site-url: 'https://rocketmq-rust.ljbmxsm.com' +# override-config: true