File size: 549 Bytes
edfb539
 
 
 
 
 
 
 
 
 
 
3178817
edfb539
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Sync with Hugging Face
on:
  push:
    branches: [main]
  workflow_dispatch: # Allow maunal trigger

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          lfs: true

      - name: Push to HF
        env:
          HF_TOKEN: ${{ secrets.HF_TOKEN }}
          HF_USERNAME: ${{ vars.HF_USERNAME }}
          HF_SPACE: ${{ vars.HF_SPACE }}
        run: git push https://$HF_USERNAME:[email protected]/spaces/$HF_USERNAME/$HF_SPACE main