From 4e745bbd6153eb89719c893ea01b375a85f5daa4 Mon Sep 17 00:00:00 2001 From: Wei Fu <36355462+garrett4wade@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:14:34 +0800 Subject: [PATCH] Update sphinx.yml --- .github/workflows/sphinx.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index ab4dcf5c..9080103e 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -9,6 +9,17 @@ jobs: contents: write steps: - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install build tools + run: sudo apt-get update && sudo apt-get install -y g++ make + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install -e . - name: Build HTML uses: garrett4wade/sphinx-action@master - name: Upload artifacts @@ -21,4 +32,4 @@ jobs: if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: docs/build/html \ No newline at end of file + publish_dir: docs/build/html