File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 - name : Install all dependencies
1919 run : |
2020 python -m pip install --upgrade pipenv
21+ python -m pip install "algoliasearch>=4.0,<5.0"
2122
2223 - name : Clone algolia repository
2324 uses : actions/checkout@v2
@@ -48,18 +49,15 @@ jobs:
4849 sed -r -i'' 's/APPLICATION_ID=/APPLICATION_ID=AKRT8SVTPP/' algolia/.env
4950 sed -r -i'' 's/API_KEY=/API_KEY=${{ secrets.API_KEY }}/' algolia/.env
5051
51- pipenv install "algoliasearch>=4.0,<5.0"
52- pipenv run pip show algoliasearch
53-
5452 - name : Delete Old Index
5553 run : |
56- echo "from algoliasearch.search_client import SearchClient" > tmp/ deleteIndex.py
57- echo "client = SearchClient.create(\"AKRT8SVTPP\", \"${{ secrets.API_KEY }}\")" >> tmp/ deleteIndex.py
58- echo "index = client.init_index(\"hardwario\")" >> tmp/ deleteIndex.py
59- echo "index.clear_objects()" >> tmp/ deleteIndex.py
60- echo "print(\"Deleted records.\")" >> tmp/ deleteIndex.py
54+ echo "from algoliasearch.search_client import SearchClient" > deleteIndex.py
55+ echo "client = SearchClient.create(\"AKRT8SVTPP\", \"${{ secrets.API_KEY }}\")" >> deleteIndex.py
56+ echo "index = client.init_index(\"hardwario\")" >> deleteIndex.py
57+ echo "index.clear_objects()" >> deleteIndex.py
58+ echo "print(\"Deleted records.\")" >> deleteIndex.py
6159
62- pipenv run python tmp/ deleteIndex.py
60+ python deleteIndex.py
6361
6462 - name : Build The Index
6563 run : |
You can’t perform that action at this time.
0 commit comments