From df36b743c069f9d30900f8210e9af8724c09e7e5 Mon Sep 17 00:00:00 2001 From: jonathanspw Date: Thu, 15 Aug 2024 13:41:21 -0500 Subject: [PATCH] add pagefind to CI/deployment pipeline --- .github/workflows/publish-preview.yml | 3 +++ .github/workflows/publish.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index eaddc70b..a1282f8a 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -41,6 +41,9 @@ jobs: - name: move redirects file into place run: cp _redirects public/ + - name: build search index + run: npx pagefind --site "public" + - name: Publish to Cloudflare Pages uses: cloudflare/pages-action@v1 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 68d1807a..df2d5c33 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -54,6 +54,9 @@ jobs: - name: move redirects file into place run: cp _redirects public/ + - name: build search index + run: npx pagefind --site "public" + - name: Publish to Cloudflare Pages uses: cloudflare/pages-action@v1 with: