Mel Seto
commited on
Commit
·
c6e4c76
1
Parent(s):
0733d73
update main.yml to work with lfs?
Browse files
.github/workflows/main.yml
CHANGED
|
@@ -2,8 +2,6 @@ name: Sync to Hugging Face hub
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
| 5 |
-
|
| 6 |
-
# to run this workflow manually from the Actions tab
|
| 7 |
workflow_dispatch:
|
| 8 |
|
| 9 |
jobs:
|
|
@@ -14,7 +12,15 @@ jobs:
|
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
| 16 |
lfs: true
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
- name: Push to hub
|
| 18 |
env:
|
| 19 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 20 |
-
run:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
on:
|
| 3 |
push:
|
| 4 |
branches: [main]
|
|
|
|
|
|
|
| 5 |
workflow_dispatch:
|
| 6 |
|
| 7 |
jobs:
|
|
|
|
| 12 |
with:
|
| 13 |
fetch-depth: 0
|
| 14 |
lfs: true
|
| 15 |
+
|
| 16 |
+
- name: Checkout LFS objects
|
| 17 |
+
run: git lfs checkout
|
| 18 |
+
|
| 19 |
- name: Push to hub
|
| 20 |
env:
|
| 21 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 22 |
+
run: |
|
| 23 |
+
git lfs install
|
| 24 |
+
git remote add hf https://chinese-enthusiasts:$HF_TOKEN@huggingface.co/spaces/chinese-enthusiasts/idiom-finder
|
| 25 |
+
git lfs push hf main --all
|
| 26 |
+
git push hf main --force
|