Fix Action: Sync to huggingface space
Browse files
.github/workflows/main.yml
CHANGED
|
@@ -19,10 +19,10 @@ jobs:
|
|
| 19 |
git config --global user.email "leyradc@gmail.com"
|
| 20 |
git config --global user.name "Colin Lin"
|
| 21 |
git config pull.rebase false
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
- name: Push to hub
|
| 27 |
env:
|
| 28 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
|
| 19 |
git config --global user.email "leyradc@gmail.com"
|
| 20 |
git config --global user.name "Colin Lin"
|
| 21 |
git config pull.rebase false
|
| 22 |
+
|
| 23 |
+
- name: Ignore large files
|
| 24 |
+
run : git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch "frontend/public/*.png"' HEAD
|
| 25 |
+
|
| 26 |
- name: Push to hub
|
| 27 |
env:
|
| 28 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|