build(deps): bump the actions group with 2 updates #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |