uv при сборке
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 47s

This commit is contained in:
2026-01-11 13:46:36 +03:00
parent 1b27f592c4
commit 9cf01e5385

View File

@@ -9,7 +9,7 @@ jobs:
build-and-deploy: build-and-deploy:
runs-on: self-hosted runs-on: self-hosted
container: container:
image: python:3.12-slim image: astral/uv:python3.12-bookworm-slim
options: --volume /var/www/knowledge-base:/var/www/knowledge-base options: --volume /var/www/knowledge-base:/var/www/knowledge-base
steps: steps:
- name: Install git - name: Install git
@@ -21,11 +21,15 @@ jobs:
run: | run: |
git clone --depth 1 --branch main https://git.tishenko.dev/tish/knowledge-base.git git clone --depth 1 --branch main https://git.tishenko.dev/tish/knowledge-base.git
- name: Sync deps (locked)
run: |
cd knowledge-base
uv sync --frozen
- name: Build site - name: Build site
run: | run: |
cd knowledge-base cd knowledge-base
pip install -r requirements.txt uv run mkdocs build
mkdocs build
- name: Deploy site - name: Deploy site
run: | run: |