From 2f238fce15ec226998c29c4369a27de6a5c7092d Mon Sep 17 00:00:00 2001 From: Steven Palma Date: Wed, 24 Dec 2025 00:40:56 +0100 Subject: [PATCH] feat(ci): adds release versioning to docs (#2709) * feat(ci): adds release versioning to docs * chore(ci): remove TODO --- .github/workflows/documentation.yml | 7 +++++-- .github/workflows/release.yml | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 3007578fc..48a10e4bc 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -33,6 +33,9 @@ on: paths: - "docs/**" + release: + types: [published] + # Ensures that only the latest commit for a PR or branch is built, canceling older runs. concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} @@ -43,7 +46,7 @@ jobs: build_main_docs: name: Build Main Docs if: > - (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && + (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'release') && github.repository == 'huggingface/lerobot' permissions: contents: read @@ -51,7 +54,7 @@ jobs: with: commit_sha: ${{ github.sha }} package: lerobot - additional_args: --not_python_module + additional_args: --not_python_module ${{ github.event_name == 'release' && format('--version {0}', github.event.release.tag_name) || '' }} secrets: token: ${{ secrets.HUGGINGFACE_PUSH }} hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b159dd17..c61307d6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -177,4 +177,3 @@ jobs: # TODO(Steven): Publish draft/pre-release and to test pypi weekly # TODO(Steven): Separate build and publish job -# TODO(Steven): Tag documentation with the same version as the package