Skip to content

Commit 68448f0

Browse files
debug: add file integrity checks before gh-pages deployment
Adding debug output to verify file sizes before the peaceiris action runs. This will help identify if files are intact before deployment or if the action itself is causing the truncation. Also added explicit configuration options to the gh-pages action.
1 parent bdb2854 commit 68448f0

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,33 @@ jobs:
149149
150150
echo "✅ Build artifacts verified - no modifications applied"
151151
152-
# ✅ Deploy using gh-pages branch (more reliable for large files)
152+
- name: ⚡ Debug: Verify files before deployment
153+
run: |
154+
echo "🔍 Checking vendor-three.js before deployment:"
155+
ls -lh dist/assets/vendor-three-C2c03BIj.js
156+
echo "File size: $(wc -c < dist/assets/vendor-three-C2c03BIj.js) bytes"
157+
echo "First 100 chars:"
158+
head -c 100 dist/assets/vendor-three-C2c03BIj.js
159+
echo "..."
160+
echo "Last 100 chars:"
161+
tail -c 100 dist/assets/vendor-three-C2c03BIj.js
162+
163+
# ✅ Deploy using gh-pages branch with LFS support for large files
153164
- name: ⚡ Deploy to GitHub Pages
154165
uses: peaceiris/actions-gh-pages@v3
155166
with:
156167
github_token: ${{ secrets.GITHUB_TOKEN }}
157168
publish_dir: ./dist
158169
publish_branch: gh-pages
159170
force_orphan: true
171+
enable_jekyll: false
172+
allow_empty_commit: false
173+
keep_files: false
174+
full_commit_message: 'Deploy: ${{ github.event.head_commit.message }}'
160175
user_name: 'github-actions[bot]'
161176
user_email: 'github-actions[bot]@users.noreply.github.com'
162-
commit_message: 'Deploy: ${{ github.event.head_commit.message }}'
177+
# Disable git lfs to avoid issues with large files
178+
lfs: false
163179

164180
- name: ⚡ Verify deployment
165181
run: |

0 commit comments

Comments
 (0)