From b653b9e784445b7a3c7bf7c703aa93d347892f0a Mon Sep 17 00:00:00 2001 From: OleehyO Date: Fri, 25 Apr 2025 08:50:16 +0000 Subject: [PATCH] [CD] Add documentation auto-deployment --- .github/workflows/deploy-doc.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy-doc.yml b/.github/workflows/deploy-doc.yml index afa9abf..24db731 100644 --- a/.github/workflows/deploy-doc.yml +++ b/.github/workflows/deploy-doc.yml @@ -11,18 +11,13 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Install uv - run: pip install uv - - name: Install docs dependencies - run: uv pip install --system -e ".[docs]" - name: Build HTML - run: | - cd docs - make html + uses: ammaraskar/sphinx-action@7.0.0 + with: + pre-build-command: | + apt-get update && apt-get install -y git + pip install uv + uv pip install --system . .[docs] - name: Upload artifacts uses: actions/upload-artifact@v4 with: @@ -33,4 +28,4 @@ jobs: if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: docs/build/html/ + publish_dir: docs/build/html