From 622a72436b47cf0b00d42011faa19ca552277872 Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Sun, 30 May 2021 16:13:24 +0200 Subject: [PATCH] Switch to GH action for updating search index --- .github/workflows/push.yml | 14 +++++--------- .github/workflows/site.yml | 14 +++++--------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 559884b..a05742b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -33,13 +33,9 @@ jobs: branch: 'gh-pages' commit-message: "[CI] Publish Documentation for ${{ github.sha }}" - - name: Read search configuration - id: config - run: echo ::set-output name=config::$(cat algolia-config.json) - - name: Update search index - uses: docker://algolia/documentation-scrapper - env: - APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }} - API_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }} - CONFIG: ${{ steps.config.outputs.config }} + uses: darrenjennings/algolia-docsearch-action@master + with: + algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }} + algolia_api_key: ${{ secrets.ALGOLIA_ADMIN_KEY }} + file: 'algolia-config.json' diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index c474908..e61ca11 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -32,13 +32,9 @@ jobs: branch: 'gh-pages' commit-message: "[CI] Publish Documentation for ${{ github.sha }}" - - name: Read search configuration - id: config - run: echo ::set-output name=config::$(cat algolia-config.json) - - name: Update search index - uses: docker://algolia/documentation-scrapper - env: - APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }} - API_KEY: ${{ secrets.ALGOLIA_ADMIN_KEY }} - CONFIG: ${{ steps.config.outputs.config }} \ No newline at end of file + uses: darrenjennings/algolia-docsearch-action@master + with: + algolia_application_id: ${{ secrets.ALGOLIA_APPLICATION_ID }} + algolia_api_key: ${{ secrets.ALGOLIA_ADMIN_KEY }} + file: 'algolia-config.json' \ No newline at end of file