Skip to content

Commit 8dfa9f9

Browse files
committed
update synch to spaces yml
1 parent a4983b4 commit 8dfa9f9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
lfs: true
1717
token: ${{ secrets.GITHUB_TOKEN }}
1818

19-
- name: Setup Git LFS
19+
- name: Setup Git LFS and Files
2020
run: |
2121
git lfs install
22+
echo "*.gif filter=lfs diff=lfs merge=lfs -text" > .gitattributes
2223
git lfs track "*.gif"
2324
git config lfs.https://huggingface.co/spaces/Prgrmmer/ai-dungeon.locksverify false
2425
25-
2626
- name: Configure Git
2727
run: |
2828
git config --global user.email "github-actions[bot]@users.noreply.github.com"
@@ -40,17 +40,10 @@ jobs:
4040
env:
4141
HF_TOKEN: ${{ secrets.HF_TOKEN }}
4242
run: |
43-
# Configure remote
4443
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
5044
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
5447
git lfs push --all origin main
5548
git push origin main
5649

0 commit comments

Comments
 (0)