From 19ef5d41347417987ae2418cd422f5ae5d2dfebf Mon Sep 17 00:00:00 2001 From: Robert Fekete Date: Mon, 28 Aug 2023 13:29:11 +0200 Subject: [PATCH] Move search indexing to the right place So older releases are properly indexed and show up in the site search Signed-off-by: Robert Fekete --- .github/workflows/publish-main.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-main.yaml b/.github/workflows/publish-main.yaml index 3ac550810..15843eabe 100644 --- a/.github/workflows/publish-main.yaml +++ b/.github/workflows/publish-main.yaml @@ -64,9 +64,6 @@ jobs: - name: Build run: hugo --environment production --baseURL ${{ steps.pages.outputs.base_url }}/ - - name: Pagefind search index - run: npm_config_yes=true npx pagefind --bundle-dir pagefind --source ./public - # - name: Upload artifact # uses: actions/upload-pages-artifact@64bcae551a7b18bcb9a09042ddf1960979799187 # v1.0.8 # with: @@ -87,6 +84,10 @@ jobs: rm -rf tmp/gh-pages/js rm -rf tmp/gh-pages/_print rsync -a public/ tmp/gh-pages/ + + - name: Pagefind search index + run: npm_config_yes=true npx pagefind --bundle-dir pagefind --source ./tmp/gh-pages + - name: Commit & Push changes uses: actions-js/push@master with: