[CD] Add documentation auto-deployment

This commit is contained in:
OleehyO
2025-04-25 08:50:16 +00:00
parent b85979b258
commit b653b9e784

View File

@@ -11,18 +11,13 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
persist-credentials: false 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 - name: Build HTML
run: | uses: ammaraskar/sphinx-action@7.0.0
cd docs with:
make html pre-build-command: |
apt-get update && apt-get install -y git
pip install uv
uv pip install --system . .[docs]
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@@ -33,4 +28,4 @@ jobs:
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html/ publish_dir: docs/build/html