Skip to content

Commit b4ea645

Browse files
committedSep 3, 2024·
ci: fix algolia uploader
1 parent 6dc4e63 commit b4ea645

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed
 

‎.github/workflows/pages.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,12 @@ jobs:
5757
with:
5858
path: ./public
5959
- name: Upload "index.json" to Algolia
60-
uses: rxrw/algolia-index-uploader@v1
61-
with:
62-
index_path: "./public/index.json"
63-
algolia_index_name: "shuosc_index_with_prefix"
64-
algolia_index_admin_key: ${{ secrets.ALGOLIA_APIKEY }}
65-
algolia_index_id: "WDJUT0BGDL"
66-
- name: Install dependencies
67-
run: |
68-
pip install --upgrade pip
69-
pip install algoliasearch
60+
uses: iChochy/Algolia-Upload-Records@main
61+
env:
62+
APPLICATION_ID: "WDJUT0BGDL"
63+
ADMIN_API_KEY: ${{ secrets.ALGOLIA_APIKEY }}
64+
INDEX_NAME: "shuosc_index_with_prefix"
65+
FILE_PATH: "./public/index.json"
7066

7167
# Deployment job
7268
deploy:

0 commit comments

Comments
 (0)
Please sign in to comment.