From 644f68492dc5a33a41cb6b71cb54aa01b4d7a6fd Mon Sep 17 00:00:00 2001 From: Rohan Verma Date: Sun, 15 Mar 2026 20:30:43 +0530 Subject: [PATCH] ci(docs): add PR doc build workflow using moat --- .github/workflows/moat-release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/moat-release.yml diff --git a/.github/workflows/moat-release.yml b/.github/workflows/moat-release.yml new file mode 100644 index 0000000..16ed69a --- /dev/null +++ b/.github/workflows/moat-release.yml @@ -0,0 +1,21 @@ +name: Test docs build + +on: + pull_request: + paths: + - 'docs/**' + - '.github/workflows/moat-release.yml' + +jobs: + test-build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install moat + run: | + curl -sL $(gh api repos/oddship/moat/releases/latest --jq '.assets[] | select(.name | contains("linux_amd64")) | .browser_download_url') -o moat + chmod +x moat + env: + GH_TOKEN: ${{ github.token }} + - name: Build docs + run: ./moat build docs