AdityaAdaki
commited on
Commit
·
61f193b
1
Parent(s):
96094b5
binary cover photo issue fixed
Browse files
.github/workflows/sync_to_hf.yml
CHANGED
@@ -13,11 +13,22 @@ jobs:
|
|
13 |
with:
|
14 |
fetch-depth: 0
|
15 |
lfs: true
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
run: |
|
18 |
-
|
|
|
|
|
|
|
|
|
19 |
- name: Push to Hugging Face
|
20 |
env:
|
21 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
22 |
-
run:
|
23 |
-
git push --force https://sikeaditya:[email protected]/sikeaditya/AgriAssist_LLM main
|
|
|
13 |
with:
|
14 |
fetch-depth: 0
|
15 |
lfs: true
|
16 |
+
|
17 |
+
- name: Add Hugging Face remote
|
18 |
+
env:
|
19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: |
|
21 |
+
git remote add hf https://sikeaditya:[email protected]/sikeaditya/AgriAssist_LLM || true
|
22 |
+
git fetch hf
|
23 |
+
|
24 |
+
- name: Restore Hugging Face README (if needed)
|
25 |
run: |
|
26 |
+
git checkout hf/main -- README.md || echo "No README.md in HF repo"
|
27 |
+
|
28 |
+
- name: Remove binary files not needed on Hugging Face
|
29 |
+
run: rm -f "cover photo.png"
|
30 |
+
|
31 |
- name: Push to Hugging Face
|
32 |
env:
|
33 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
34 |
+
run: git push --force hf main
|
|