From ab48cf88a1c132db115fd9655240158a8ec5e094 Mon Sep 17 00:00:00 2001 From: Aidan Foster Date: Mon, 18 Aug 2025 17:33:48 -0700 Subject: [PATCH] Add CI for Jekyll/Pages build --- .github/workflows/jekyll-build-test.yml | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/jekyll-build-test.yml diff --git a/.github/workflows/jekyll-build-test.yml b/.github/workflows/jekyll-build-test.yml new file mode 100644 index 00000000..7a7a4c9e --- /dev/null +++ b/.github/workflows/jekyll-build-test.yml @@ -0,0 +1,40 @@ +name: Build Jekyll Site + +on: + pull_request: + branches: [ main ] + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: 'recursive' + + - name: Build with Jekyll + id: jekyll-build + uses: actions/jekyll-build-pages@v1 + with: + source: . + destination: ./_site + future: false + build_revision: ${{ github.sha }} + verbose: true + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Test build artifacts + run: | + if [ ! -d "_site" ]; then + echo "Jekyll build failed - _site directory not created" + exit 1 + fi + + if [ ! -f "_site/index.html" ]; then + echo "Jekyll build failed - index.html not generated" + exit 1 + fi + + echo "Jekyll build completed successfully"