From d5a57d9db1d6a36182466d671fa27f8579bc4f37 Mon Sep 17 00:00:00 2001 From: Errant Date: Tue, 3 Sep 2024 19:22:56 +0800 Subject: [PATCH] ci: fix algolia uploader --- .github/workflows/pages.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index fb8b858..d90e5c2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -57,16 +57,12 @@ jobs: with: path: ./public - name: Upload "index.json" to Algolia - uses: rxrw/algolia-index-uploader@v1 - with: - index_path: "./public/index.json" - algolia_index_name: "shuosc_index_with_prefix" - algolia_index_admin_key: ${{ secrets.ALGOLIA_APIKEY }} - algolia_index_id: "WDJUT0BGDL" - - name: Install dependencies - run: | - pip install --upgrade pip - pip install algoliasearch + uses: guzhongren/algolia-docsearch-upload-action@v2.0.0 + env: + FILE_PATH: "./public/index.json" + APPLICATION_ID: "WDJUT0BGDL" + ADMIN_API_KEY: ${{ secrets.ALGOLIA_APIKEY }} + INDEX_NAME: "shuosc_index_with_prefix" # Deployment job deploy: