Skip to content

Commit

Permalink
add pagefind to CI/deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanspw committed Aug 15, 2024
1 parent 85c3fe6 commit df36b74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit df36b74

Please sign in to comment.