Skip to content

Commit ab48cf8

Browse files
committed
Add CI for Jekyll/Pages build
1 parent 63b05de commit ab48cf8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Jekyll Site
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build-test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: 'recursive'
16+
17+
- name: Build with Jekyll
18+
id: jekyll-build
19+
uses: actions/jekyll-build-pages@v1
20+
with:
21+
source: .
22+
destination: ./_site
23+
future: false
24+
build_revision: ${{ github.sha }}
25+
verbose: true
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Test build artifacts
29+
run: |
30+
if [ ! -d "_site" ]; then
31+
echo "Jekyll build failed - _site directory not created"
32+
exit 1
33+
fi
34+
35+
if [ ! -f "_site/index.html" ]; then
36+
echo "Jekyll build failed - index.html not generated"
37+
exit 1
38+
fi
39+
40+
echo "Jekyll build completed successfully"

0 commit comments

Comments
 (0)