mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-22 12:09:42 +00:00
feat(ci): trigger manually documentation release version (#2841)
This commit is contained in:
@@ -18,6 +18,11 @@ name: Documentation
|
|||||||
on:
|
on:
|
||||||
# Allows running this workflow manually from the Actions tab
|
# Allows running this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'Version tag (e.g. v0.1.2) - Leave empty for standard main build'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
# Triggers the workflow on push events to main for the docs folder
|
# Triggers the workflow on push events to main for the docs folder
|
||||||
push:
|
push:
|
||||||
@@ -54,7 +59,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
commit_sha: ${{ github.sha }}
|
commit_sha: ${{ github.sha }}
|
||||||
package: lerobot
|
package: lerobot
|
||||||
additional_args: --not_python_module ${{ github.event_name == 'release' && format('--version {0}', github.event.release.tag_name) || '' }}
|
additional_args: >-
|
||||||
|
--not_python_module
|
||||||
|
${{
|
||||||
|
(github.event_name == 'release' && format('--version {0}', github.event.release.tag_name)) ||
|
||||||
|
(inputs.version != '' && format('--version {0}', inputs.version)) ||
|
||||||
|
''
|
||||||
|
}}
|
||||||
secrets:
|
secrets:
|
||||||
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
||||||
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
|
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
|
||||||
|
|||||||
Reference in New Issue
Block a user