Skip to content

Commit 7852325

Browse files
committed
Add github build
1 parent da78d94 commit 7852325

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 22
18+
cache: 'npm'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Build site
24+
run: npm run build
25+
26+
- name: Check build output
27+
run: |
28+
if [ ! -d "_site" ]; then
29+
echo "Build failed: _site directory not found"
30+
exit 1
31+
fi
32+
if [ ! -f "_site/index.html" ]; then
33+
echo "Build failed: index.html not found in _site"
34+
exit 1
35+
fi
36+
echo "Build successful: $(find _site -type f | wc -l) files generated"

0 commit comments

Comments
 (0)