From 069afbf51e5bae5ae0ac85e70c1772f9c9f5fa03 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Apr 2026 16:34:24 +0000 Subject: [PATCH] Update from copier (2026-04-11T16:34:24) Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- .copier-answers.yaml | 2 +- .github/workflows/docs.yaml | 35 ++++++++++++++++++++++++++++++----- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 5801d30..a4687ce 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 2ac7460 +_commit: 6ce048e _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: python diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 3073abe..ef0fd1f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,21 +1,46 @@ name: Publish Docs on: - push: - branches: - - main + workflow_run: + workflows: ["Build Status"] + branches: [main] + types: [completed] workflow_dispatch: + permissions: + actions: read contents: write + jobs: docs: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} steps: - uses: actions/checkout@v6 - uses: actions-ext/python/setup@main - - run: uv pip install .[develop] - - run: uv pip install yardang + + - name: Download dist from build + uses: actions/download-artifact@v7 + with: + name: dist-ubuntu-latest + path: dist + run-id: ${{ github.event.workflow_run.id }} + if: github.event_name == 'workflow_run' + + - name: Install from wheel + run: | + uv pip install dist/*.whl + uv pip install yardang + if: github.event_name == 'workflow_run' + + - name: Install from source (manual trigger) + run: | + uv pip install .[develop] + uv pip install yardang + if: github.event_name == 'workflow_dispatch' + - run: yardang build + - uses: peaceiris/actions-gh-pages@v4 with: publish_branch: gh-pages