Skip to content

Commit bb684fb

Browse files
committed
Created a package rule for pagefind
1 parent d42898c commit bb684fb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/astro.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ jobs:
7676
--base "${{ steps.pages.outputs.base_path }}"
7777
working-directory: ${{ env.BUILD_PATH }}
7878
- name: Index Pages with Pagefind
79-
run: pagefind --site dist
79+
run: ${{ steps.detect-package-manager.outputs.runner }} index-pages \
80+
--site "${{ steps.pages.outputs.origin }}" \
8081
- name: Upload artifact
8182
uses: actions/upload-pages-artifact@v3
8283
with:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "astro dev",
77
"start": "astro dev",
88
"check": "astro check",
9-
"build": "astro build && pagefind --site dist",
9+
"build": "astro build",
10+
"index-pages": "pagefind",
1011
"preview": "astro preview",
1112
"astro": "astro",
1213
"type-check": "tsc --noEmit --isolatedDeclarations",

0 commit comments

Comments
 (0)