Skip to content

build(deps): bump the actions group with 2 updates #26

build(deps): bump the actions group with 2 updates

build(deps): bump the actions group with 2 updates #26

Workflow file for this run

name: Sync frontend to Hugging Face Space
on:
push:
branches: [main]
paths:
- 'frontend/**'
- '!frontend/dist/**'
- '.github/workflows/sync_space.yml'
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6.0.2
with:
lfs: true
persist-credentials: false
- name: Push frontend/ (without dist/) to Hugging Face Space
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
cd frontend
# The Space builds its own bundle via Docker; dist/ would be
# rejected by HF's pre-receive hook for containing raw binaries.
rm -rf dist
git init -b main
git config user.email "ci@huggingface.co"
git config user.name "GitHub CI"
git add -A
git commit -m "Sync from leLab @ ${GITHUB_SHA}"
git push -f https://Nico-robot:$HF_TOKEN@huggingface.co/spaces/lerobot/LeLab main