mattb512's picture
Update hf-sync.yml
2864dd2 unverified
raw
history blame
721 Bytes
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:$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