File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 18
18
- name : Install all dependencies
19
19
run : |
20
20
python -m pip install --upgrade pipenv
21
+ python -m pip install "algoliasearch>=4.0,<5.0"
21
22
22
23
- name : Clone algolia repository
23
24
uses : actions/checkout@v2
@@ -48,18 +49,15 @@ jobs:
48
49
sed -r -i'' 's/APPLICATION_ID=/APPLICATION_ID=AKRT8SVTPP/' algolia/.env
49
50
sed -r -i'' 's/API_KEY=/API_KEY=${{ secrets.API_KEY }}/' algolia/.env
50
51
51
- pipenv install "algoliasearch>=4.0,<5.0"
52
- pipenv run pip show algoliasearch
53
-
54
52
- name : Delete Old Index
55
53
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
61
59
62
- pipenv run python tmp/ deleteIndex.py
60
+ python deleteIndex.py
63
61
64
62
- name : Build The Index
65
63
run : |
You can’t perform that action at this time.
0 commit comments