mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 20:19:43 +00:00
feat(ci): adds release versioning to docs (#2709)
* feat(ci): adds release versioning to docs * chore(ci): remove TODO
This commit is contained in:
@@ -33,6 +33,9 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
|
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
# Ensures that only the latest commit for a PR or branch is built, canceling older runs.
|
# Ensures that only the latest commit for a PR or branch is built, canceling older runs.
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
@@ -43,7 +46,7 @@ jobs:
|
|||||||
build_main_docs:
|
build_main_docs:
|
||||||
name: Build Main Docs
|
name: Build Main Docs
|
||||||
if: >
|
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'
|
github.repository == 'huggingface/lerobot'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -51,7 +54,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
commit_sha: ${{ github.sha }}
|
commit_sha: ${{ github.sha }}
|
||||||
package: lerobot
|
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:
|
secrets:
|
||||||
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
||||||
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
|
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
|
||||||
|
|||||||
@@ -177,4 +177,3 @@ jobs:
|
|||||||
|
|
||||||
# TODO(Steven): Publish draft/pre-release and to test pypi weekly
|
# TODO(Steven): Publish draft/pre-release and to test pypi weekly
|
||||||
# TODO(Steven): Separate build and publish job
|
# TODO(Steven): Separate build and publish job
|
||||||
# TODO(Steven): Tag documentation with the same version as the package
|
|
||||||
|
|||||||
Reference in New Issue
Block a user