From c60d003c0125ed354000aa4e2007279e2db95e2e Mon Sep 17 00:00:00 2001 From: cedaraspen <163000251+cedaraspen@users.noreply.github.com> Date: Tue, 4 Nov 2025 15:06:33 -0500 Subject: [PATCH] add gh action --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4a5f229 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build Documentation + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "yarn" + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build documentation + run: yarn docs:build + + - name: Check for build errors + if: failure() + run: | + echo "❌ Documentation build failed!" + exit 1