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

---
 /dev/null                                        |    0 
 exampleSite/.github/workflows/agolia-update.yaml |    9 +++++----
 .github/workflows/agolia-update.yaml             |    9 +++++----
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/agolia-update.yaml b/.github/workflows/agolia-update.yaml
index 98e6b20..4157458 100644
--- a/.github/workflows/agolia-update.yaml
+++ b/.github/workflows/agolia-update.yaml
@@ -63,7 +63,8 @@
       run: |
         git config --local user.email "action@github.com"
         git config --local user.name "GitHub Action"
-        git add -A dist/index.json
+        cp exampleSite/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"
 
@@ -93,7 +94,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
diff --git a/dist/.gitkeep b/dist/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/dist/.gitkeep
+++ /dev/null
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
diff --git a/exampleSite/dist/.gitkeep b/exampleSite/dist/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/exampleSite/dist/.gitkeep
+++ /dev/null

--
Gitblit v1.10.0