ci: fix - remove large file
Browse files- .github/workflows/push-to-hf.yaml +6 -0
- .gitignore +2 -0
.github/workflows/push-to-hf.yaml
CHANGED
|
@@ -14,6 +14,12 @@ jobs:
|
|
| 14 |
fetch-depth: 0
|
| 15 |
lfs: true
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
- name: Push to Space
|
| 18 |
env:
|
| 19 |
HF_TOKEN: ${{ secrets.HUGGINGFACE_API_KEY }}
|
|
|
|
| 14 |
fetch-depth: 0
|
| 15 |
lfs: true
|
| 16 |
|
| 17 |
+
- name: Remove large files from Git history
|
| 18 |
+
run: |
|
| 19 |
+
git filter-branch --force --index-filter \
|
| 20 |
+
"git rm --cached --ignore-unmatch instance/attestation_store.db.bak" \
|
| 21 |
+
--prune-empty --tag-name-filter cat -- --all
|
| 22 |
+
|
| 23 |
- name: Push to Space
|
| 24 |
env:
|
| 25 |
HF_TOKEN: ${{ secrets.HUGGINGFACE_API_KEY }}
|
.gitignore
CHANGED
|
@@ -22,3 +22,5 @@ static/docs/
|
|
| 22 |
# Git repositories served via HTTP
|
| 23 |
repos/
|
| 24 |
instance/*.db
|
|
|
|
|
|
|
|
|
| 22 |
# Git repositories served via HTTP
|
| 23 |
repos/
|
| 24 |
instance/*.db
|
| 25 |
+
instance/*.db.bak
|
| 26 |
+
|