[CD] Add documentation auto-deployment
This commit is contained in:
19
.github/workflows/deploy-doc.yml
vendored
19
.github/workflows/deploy-doc.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user