From b54601132b7fa0377ef566eff4ebe29f796814b9 Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 21 Mar 2026 06:32:05 +0300 Subject: [PATCH] added doc build to release --- .github/workflows/release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3125b7..af0ac57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,35 @@ permissions: contents: write jobs: + ############################################################################## + # 0) Documentation – MkDocs + ############################################################################## + docs-release: + name: Documentation + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install mkdocs and dependencies + run: pip install mkdocs mkdocs-bootswatch + + - name: Build documentation + run: mkdocs build --strict + + - name: Package + run: tar -czf omath-docs.tar.gz -C site . + + - name: Upload release asset + env: + GH_TOKEN: ${{ github.token }} + run: gh release upload "${{ github.event.release.tag_name }}" omath-docs.tar.gz --clobber + ############################################################################## # 1) Linux – Clang / Ninja ##############################################################################