From fc57187afb0b616092be5c8048c85459ab4773c7 Mon Sep 17 00:00:00 2001 From: Stanislav Khrapov Date: Wed, 1 Jul 2026 08:46:27 +0200 Subject: [PATCH] fix docs publishing --- .github/workflows/bump-version.yaml | 32 +++++++++++++++++++++++++++++ .github/workflows/workflow.yaml | 16 --------------- 2 files changed, 32 insertions(+), 16 deletions(-) diff --git a/.github/workflows/bump-version.yaml b/.github/workflows/bump-version.yaml index cc91c37..7c051ca 100644 --- a/.github/workflows/bump-version.yaml +++ b/.github/workflows/bump-version.yaml @@ -30,3 +30,35 @@ jobs: generate_release_notes: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + docs: + name: Build docs + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v6 + - name: Install uv + uses: astral-sh/setup-uv@v7 + with: + enable-cache: true + cache-dependency-glob: "uv.lock" + - name: Setup Python + uses: actions/setup-python@v6 + with: + python-version-file: ".python-version" + - name: Install dependencies + run: uv sync --group doc + - name: Build documentation + run: uv run mkdocs build -c + - name: Commit + run: | + git add --all + git config --global user.email "khrapovs@gmail.com" + git config --global user.name "Stanislav Khrapov" + git commit --all -m "sys: Build documentation" + - name: Push + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + force: true diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index bf73b6f..d8257b6 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -135,19 +135,3 @@ jobs: run: uv build - name: Publish run: uv publish - - name: Install dependencies - run: uv sync --group doc - - name: Build documentation - run: uv run mkdocs build -c - - name: Commit - run: | - git add --all - git config --global user.email "khrapovs@gmail.com" - git config --global user.name "Stanislav Khrapov" - git commit --all -m "sys: Build documentation" - - name: Push - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages - force: true