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 -f https://$HF_USER:[email protected]/spaces/TRI-ML/vlm-demo main | |
# not working, action not found | |
# - name: Check large files | |
# uses: ActionsDesk/[email protected] | |
# with: | |
# filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces | |