Spaces:
Configuration error
Configuration error
Create sync.yml
Browse files- .github/workflows/sync.yml +17 -0
.github/workflows/sync.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync to Hugging Face Hub
|
| 2 |
+
on:
|
| 3 |
+
push:
|
| 4 |
+
branches: [main]
|
| 5 |
+
jobs:
|
| 6 |
+
sync:
|
| 7 |
+
runs-on: ubuntu-latest
|
| 8 |
+
steps:
|
| 9 |
+
- uses: actions/checkout@v4
|
| 10 |
+
with:
|
| 11 |
+
fetch-depth: 0
|
| 12 |
+
lfs: true
|
| 13 |
+
- uses: huggingface/hub-sync@v0.1.0
|
| 14 |
+
with:
|
| 15 |
+
github_repo_id: ${{ github.repository }}
|
| 16 |
+
huggingface_repo_id: catalyst-intelligence/nutriscan-ai
|
| 17 |
+
hf_token: ${{ secrets.HF_TOKEN }}
|