Skip to content

Commit 4bfd980

Browse files
authored
Merge pull request #10 from vincentfretin/pageindex-ci
Add Pagefind search indexing via GitHub Actions
2 parents e0fb80b + a057487 commit 4bfd980

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
12+
concurrency:
13+
group: pages
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build-and-deploy:
18+
runs-on: ubuntu-latest
19+
environment:
20+
name: github-pages
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
steps:
23+
- uses: actions/checkout@v6
24+
25+
- uses: actions/setup-node@v6
26+
with:
27+
node-version: 24
28+
29+
- name: Generate Pagefind index
30+
run: npx pagefind@1.5.0 --site .
31+
32+
- name: Upload Pages artifact
33+
uses: actions/upload-pages-artifact@v4
34+
with:
35+
path: .
36+
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)