From 4fec152d9e2a7bd615014e3948ee27591fcf662b Mon Sep 17 00:00:00 2001 From: phil65 Date: Tue, 15 Oct 2024 20:12:43 +0200 Subject: [PATCH] build: more uv --- .github/workflows/documentation.yml | 43 +++++++++++++++-------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index fb0f802..7f1350a 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -23,30 +23,31 @@ defaults: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' - - name: Setup Graphviz - uses: ts-graphviz/setup-graphviz@v2 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install hatch - hatch env create - - name: Build - run: hatch run docs-build-test - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./site + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + - name: Setup Graphviz + uses: ts-graphviz/setup-graphviz@v2 + - name: Install uv + uses: yezz123/setup-uv@v4 + - name: Install dependencies + run: | + uv sync --all-extras + - name: Build + run: | + uv run mkdocs build -v + uv run mknodes build -d ../site/mkdocs -p configs/mkdocs_mkdocs.yml -v --clone-depth 100 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: ./site deploy: environment: