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: