Skip to content

Commit e40b9dd

Browse files
fix: explicitly disable Git LFS during deployment to prevent file truncation
Git LFS was intercepting files and creating 1,398 byte pointer files. Now explicitly setting filter.lfs.* configs to pass-through mode and disabling LFS completely for the deployment repository.
1 parent eae035e commit e40b9dd

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,23 @@ jobs:
160160
echo "Last 100 chars:"
161161
tail -c 100 dist/assets/vendor-three-C2c03BIj.js
162162
163-
# ✅ Deploy using direct git push (avoids action truncation issues)
163+
# ✅ Deploy using direct git push with LFS completely disabled
164164
- name: ⚡ Deploy to GitHub Pages
165+
env:
166+
GIT_LFS_SKIP_SMUDGE: 1
165167
run: |
166-
echo "🚀 Deploying to gh-pages branch..."
168+
echo "🚀 Deploying to gh-pages branch (LFS disabled)..."
167169
cd dist
168170
git init
171+
# Disable Git LFS completely for this repository
169172
git config user.name "github-actions[bot]"
170173
git config user.email "github-actions[bot]@users.noreply.github.com"
174+
git config filter.lfs.required false
175+
git config filter.lfs.clean "cat"
176+
git config filter.lfs.smudge "cat"
177+
git config filter.lfs.process ""
178+
git config lfs.repositoryformatversion ""
179+
echo "✅ Git LFS disabled"
171180
git add -A
172181
echo "📦 Files to commit:"
173182
git status --short

0 commit comments

Comments
 (0)