Skip to content

Commit 747583d

Browse files
committed
Add GIF via LFS
1 parent adee8b9 commit 747583d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/sync-to-hugging-face-hub.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,19 @@ jobs:
1515
fetch-depth: 0
1616
lfs: true
1717

18+
- name: Setup Git LFS
19+
run: |
20+
git lfs install
21+
git lfs track "*.gif"
22+
1823
- name: Pull LFS files
1924
run: git lfs pull
2025

26+
- name: Configure Git
27+
run: |
28+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
29+
git config --global user.name "github-actions[bot]"
30+
2131
- name: Login to Hugging Face
2232
run: |
2333
pip install --upgrade huggingface_hub
@@ -27,5 +37,7 @@ jobs:
2737
env:
2838
HF_TOKEN: ${{ secrets.HF_TOKEN }}
2939
run: |
30-
git lfs push --all https://Prgrmmer:$HF_TOKEN@huggingface.co/spaces/Prgrmmer/ai-dungeon
40+
git add .gitattributes
41+
git commit -m "Update LFS tracking" || true
42+
git lfs push --all origin main
3143
git push https://Prgrmmer:$HF_TOKEN@huggingface.co/spaces/Prgrmmer/ai-dungeon main

0 commit comments

Comments
 (0)