File size: 721 Bytes
03ddf81
 
 
 
bc2999d
 
 
03ddf81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dbe1204
 
2864dd2
7578fa4
5afedc8
 
 
 
2864dd2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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