File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments