File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -16,13 +16,13 @@ jobs:
16
16
lfs : true
17
17
token : ${{ secrets.GITHUB_TOKEN }}
18
18
19
- - name : Setup Git LFS
19
+ - name : Setup Git LFS and Files
20
20
run : |
21
21
git lfs install
22
+ echo "*.gif filter=lfs diff=lfs merge=lfs -text" > .gitattributes
22
23
git lfs track "*.gif"
23
24
git config lfs.https://huggingface.co/spaces/Prgrmmer/ai-dungeon.locksverify false
24
25
25
-
26
26
- name : Configure Git
27
27
run : |
28
28
git config --global user.email "github-actions[bot]@users.noreply.github.com"
@@ -40,17 +40,10 @@ jobs:
40
40
env :
41
41
HF_TOKEN : ${{ secrets.HF_TOKEN }}
42
42
run : |
43
- # Configure remote
44
43
git remote set-url origin https://Prgrmmer:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Prgrmmer/ai-dungeon
45
-
46
- # Pull latest changes
47
- git pull origin main --rebase
48
-
49
- # Add and commit LFS config
50
44
git add .gitattributes
51
- git commit -m "Update LFS tracking" || true
52
-
53
- # Push LFS objects and changes
45
+ git commit -m "Add Git LFS configuration" || true
46
+ git pull origin main --rebase
54
47
git lfs push --all origin main
55
48
git push origin main
56
49
You can’t perform that action at this time.
0 commit comments