dn-scribe commited on
Commit
36c54a5
·
1 Parent(s): 6cc19e0
Files changed (1) hide show
  1. .github/workflows/push-to-hf.yaml +9 -4
.github/workflows/push-to-hf.yaml CHANGED
@@ -18,16 +18,21 @@ jobs:
18
  run: |
19
  git config user.name "github-actions[bot]"
20
  git config user.email "github-actions[bot]@users.noreply.github.com"
 
 
 
 
 
21
  git lfs install
22
 
23
  # Track binary files with LFS
24
  git lfs track "*.png" "*.jpg" "*.jpeg" "*.gif" "*.pdf" "*.db" "*.db.bak"
25
 
26
- # Migrate existing binary files to LFS
27
- git lfs migrate import --include="*.png,*.jpg,*.jpeg,*.gif,*.pdf,*.db,*.db.bak" --everything
28
 
29
- # Clean up large database backups from history
30
- git filter-repo --path instance/attestation_store.db.bak --invert-paths || \
31
  git filter-branch --force --index-filter \
32
  "git rm --cached --ignore-unmatch instance/attestation_store.db.bak" \
33
  --prune-empty --tag-name-filter cat -- --all || true
 
18
  run: |
19
  git config user.name "github-actions[bot]"
20
  git config user.email "github-actions[bot]@users.noreply.github.com"
21
+
22
+ # Reset to clean state
23
+ git reset --hard HEAD
24
+ git clean -fd
25
+
26
  git lfs install
27
 
28
  # Track binary files with LFS
29
  git lfs track "*.png" "*.jpg" "*.jpeg" "*.gif" "*.pdf" "*.db" "*.db.bak"
30
 
31
+ # Migrate existing binary files to LFS with --yes flag
32
+ git lfs migrate import --include="*.png,*.jpg,*.jpeg,*.gif,*.pdf,*.db,*.db.bak" --everything --yes
33
 
34
+ # Clean up large database backups from history if they weren't caught by LFS migrate
35
+ export FILTER_BRANCH_SQUELCH_WARNING=1
36
  git filter-branch --force --index-filter \
37
  "git rm --cached --ignore-unmatch instance/attestation_store.db.bak" \
38
  --prune-empty --tag-name-filter cat -- --all || true