From 202a5a6f862299238ab526e0075402c87e368df8 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 27 Feb 2023 16:14:59 +0000
Subject: [PATCH] update index path
---
exampleSite/.github/workflows/agolia-update.yaml | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/exampleSite/.github/workflows/agolia-update.yaml b/exampleSite/.github/workflows/agolia-update.yaml
index d9af2fe..3914f6e 100644
--- a/exampleSite/.github/workflows/agolia-update.yaml
+++ b/exampleSite/.github/workflows/agolia-update.yaml
@@ -64,7 +64,8 @@
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- git add -A exampleSite/dist/index.json
+ cp dist/index.json index.json
+ git add -A index.json
commit_message=$(git commit -m "Build search index." -a | tr -d '\n' || true)
echo "commit_message=$commxit_message >> $GITHUB_OUTPUT"
@@ -94,7 +95,7 @@
app_id: ${{ secrets.AGOLIA_INDEX_ID }}
# Go to https://github.com/dimi365/website/settings/secrets/actions and set an AGOLIA_ADMIN_KEY secret key
admin_key: ${{ secrets.AGOLIA_ADMIN_KEY }}
- # The index name.
- index_name: dimi_site
+ # The algolia search index name.
+ index_name: compose # edit appropriately
# The index file path relative to repo root. no leading forward slash
- index_file_path: dist/index.json
\ No newline at end of file
+ index_file_path: index.json
\ No newline at end of file
--
Gitblit v1.10.0