name: Sync with HuggingFace | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Push to hub | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
HF_USER: ${{ vars.HF_USER }} | |
run: git push https://$HF_USER:$HF_TOKEN@huggingface.co/spaces/TRI-ML/vlm-demo main |