From b13273e4683b0802c4193cafc5aaa32ef7348741 Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Mon, 27 Feb 2023 16:08:29 +0000
Subject: [PATCH] update module
---
.github/workflows/agolia-update.yaml | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/agolia-update.yaml b/.github/workflows/agolia-update.yaml
index d7e5cee..98e6b20 100644
--- a/.github/workflows/agolia-update.yaml
+++ b/.github/workflows/agolia-update.yaml
@@ -1,6 +1,6 @@
-name: Update Algolia Search Index
+name: UPDATE ALGOLIA INDEX
-off: # change to `on:` to turn on
+on:
workflow_dispatch:
branches:
- main
@@ -31,7 +31,7 @@
extended: true
- name: Build
- run: hugo -e "production" -d "dist" --minify
+ run: hugo -e "production" -d "dist" -s "exampleSite" --minify
# If build succeeds, store the dist/ dir as an artifact to be used in subsequent phases.
- name: Upload output dist dir as artifact
uses: actions/upload-artifact@v1
@@ -63,9 +63,10 @@
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- git add -A dist/
- commit_message=$(git commit -m "Publish generated Hugo site." -a | tr -d '\n' || true)
+ git add -A dist/index.json
+ commit_message=$(git commit -m "Build search index." -a | tr -d '\n' || true)
echo "commit_message=$commxit_message >> $GITHUB_OUTPUT"
+
# Checks if previous stage had any valid commit.
- name: Nothing to commit
id: nothing_committed
--
Gitblit v1.10.0