We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da78d94 commit 7852325Copy full SHA for 7852325
.github/workflows/build.yml
@@ -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
35
36
+ echo "Build successful: $(find _site -type f | wc -l) files generated"
0 commit comments