name: Sync with HuggingFace on: push: branches: [ "main" ] # 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 # not working, action not found # - name: Check large files # uses: ActionsDesk/lfs-warning@v2.0 # with: # filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces