From 96e0522b750e400915ec0078ee3c1b029fbd97e5 Mon Sep 17 00:00:00 2001 From: fan-ziqi Date: Mon, 18 Nov 2024 11:30:27 +0800 Subject: [PATCH] update workflow --- .github/workflows/gh-pages-zhcn.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/gh-pages-zhcn.yml b/.github/workflows/gh-pages-zhcn.yml index 6f98613abd..dd2592db8a 100644 --- a/.github/workflows/gh-pages-zhcn.yml +++ b/.github/workflows/gh-pages-zhcn.yml @@ -22,6 +22,22 @@ jobs: git config --global user.name 'fan-ziqi' git config --global user.email 'fanziqi614@gmail.com' + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools polib==1.2.0 openai==v1.3.6 python-dotenv==1.0.0 pytest==8.2.2 sphinx-intl sphinx-book-theme==1.0.1 myst-parser sphinxcontrib-bibtex==2.5.0 autodocsumm sphinx-copybutton sphinx-icon sphinx_design sphinxemoji numpy matplotlib warp-lang gymnasium sphinx-multiversion sphinx-tabs + + - name: Build HTML with translations + run: | + pushd docs + sphinx-build -M html . _build -D language='zh_CN' + popd + - name: Copy generated HTML files to temporary Path run: | mkdir -p temp_html