Spaces:
Runtime error
Runtime error
Commit ·
04cb60e
1
Parent(s): 60a3bde
Refactor .gitattributes for git-xet and update workflow to add upstream remote
Browse files- .gitattributes +2 -1
- .github/workflows/main.yml +4 -0
.gitattributes
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
# Store binary docs via git-xet on push to Hugging Face
|
| 2 |
*.pdf filter=xet -text
|
| 3 |
*.docx filter=xet -text
|
| 4 |
-
*.pptx filter=xet -text
|
|
|
|
| 5 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 6 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
# Store binary docs via git-xet on push to Hugging Face
|
| 2 |
*.pdf filter=xet -text
|
| 3 |
*.docx filter=xet -text
|
| 4 |
+
*.pptx filter=xet -text
|
| 5 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 6 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
.github/workflows/main.yml
CHANGED
|
@@ -51,6 +51,7 @@ jobs:
|
|
| 51 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 52 |
run: |
|
| 53 |
git remote add hf https://daniel-was-taken:$HF_TOKEN@huggingface.co/spaces/daniel-was-taken/CompifAI.git
|
|
|
|
| 54 |
|
| 55 |
# --------------------------------------------------
|
| 56 |
# Re-encode binaries through git-xet filters and push to HF
|
|
@@ -60,6 +61,9 @@ jobs:
|
|
| 60 |
env:
|
| 61 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 62 |
run: |
|
|
|
|
|
|
|
|
|
|
| 63 |
# Reapply clean filters so binaries are stored via xet
|
| 64 |
git add --renormalize data .gitattributes || true
|
| 65 |
git status
|
|
|
|
| 51 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 52 |
run: |
|
| 53 |
git remote add hf https://daniel-was-taken:$HF_TOKEN@huggingface.co/spaces/daniel-was-taken/CompifAI.git
|
| 54 |
+
git remote add upstream_xet_repo https://daniel-was-taken:$HF_TOKEN@huggingface.co/spaces/daniel-was-taken/CompifAI.git || true
|
| 55 |
|
| 56 |
# --------------------------------------------------
|
| 57 |
# Re-encode binaries through git-xet filters and push to HF
|
|
|
|
| 61 |
env:
|
| 62 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 63 |
run: |
|
| 64 |
+
# Initialize xet metadata against upstream
|
| 65 |
+
git xet init --force || true
|
| 66 |
+
git restore --source=HEAD :/ || true
|
| 67 |
# Reapply clean filters so binaries are stored via xet
|
| 68 |
git add --renormalize data .gitattributes || true
|
| 69 |
git status
|