File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,22 @@ jobs:
36
36
pip install --upgrade huggingface_hub
37
37
huggingface-cli login --token ${{ secrets.HUGGINGFACE_API_KEY }}
38
38
39
- - name : Push to hub
39
+ - name : Sync and Push to hub
40
40
env :
41
41
HF_TOKEN : ${{ secrets.HF_TOKEN }}
42
42
run : |
43
+ # Configure remote
44
+ 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
43
50
git add .gitattributes
44
51
git commit -m "Update LFS tracking" || true
45
- git remote set-url origin https://Prgrmmer:${{ secrets.HF_TOKEN }}@huggingface.co/spaces/Prgrmmer/ai-dungeon
52
+
53
+ # Push LFS objects and changes
46
54
git lfs push --all origin main
47
- git push origin main
55
+ git push origin main
56
+
57
+
You can’t perform that action at this time.
0 commit comments