Open
Description
Describe the bug
I have git lfs enabled to avoid the following error. But, didn't work as expected. How can i use lfs with github-pages-deploy action? Thanks
Reproduction Steps
Just trigger the github action. The last step is the deploy for gh-pages
https://github.com/humbertodias/hugo-lululu/actions/runs/13949717495/job/39045715595
Logs
20s
Run JamesIves/github-pages-deploy-action@v4
╭━━━╮╭╮╭╮╱╭╮╱╱╭╮╱╱╭━━━╮
┃╭━╮┣╯╰┫┃╱┃┃╱╱┃┃╱╱┃╭━╮┃
┃┃╱╰╋╮╭┫╰━╯┣╮╭┫╰━╮┃╰━╯┣━━┳━━┳━━┳━━╮
┃┃╭━╋┫┃┃╭━╮┃┃┃┃╭╮┃┃╭━━┫╭╮┃╭╮┃┃━┫━━┫
┃╰┻━┃┃╰┫┃╱┃┃╰╯┃╰╯┃┃┃╱╱┃╭╮┃╰╯┃┃━╋━━┃
╰━━━┻┻━┻╯╱╰┻━━┻━━╯╰╯╱╱╰╯╰┻━╮┣━━┻━━╯
╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╭━╯┃
╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╱╰━━╯
╭━━━╮╱╱╱╱╱╭╮╱╱╱╱╱╱╱╱╭━━━╮╱╱╭╮
╰╮╭╮┃╱╱╱╱╱┃┃╱╱╱╱╱╱╱╱┃╭━╮┃╱╭╯╰╮
╱┃┃┃┣━━┳━━┫┃╭━━┳╮╱╭╮┃┃╱┃┣━┻╮╭╋┳━━┳━╮
╱┃┃┃┃┃━┫╭╮┃┃┃╭╮┃┃╱┃┃┃╰━╯┃╭━┫┃┣┫╭╮┃╭╮╮
╭╯╰╯┃┃━┫╰╯┃╰┫╰╯┃╰━╯┃┃╭━╮┃╰━┫╰┫┃╰╯┃┃┃┃
╰━━━┻━━┫╭━┻━┻━━┻━╮╭╯╰╯╱╰┻━━┻━┻┻━━┻╯╰╯
╱╱╱╱╱╱╱┃┃╱╱╱╱╱╱╭━╯┃
╱╱╱╱╱╱╱╰╯╱╱╱╱╱╱╰━━╯
💖 Support: https://github.com/sponsors/JamesIves
📣 Maintained by James Ives: https://jamesiv.es
🚀 Getting Started Guide: https://github.com/JamesIves/github-pages-deploy-action
❓ Discussions / Q&A: https://github.com/JamesIves/github-pages-deploy-action/discussions
🔧 Report a Bug: https://github.com/JamesIves/github-pages-deploy-action/issues
Checking configuration and starting deployment… 🚦
Deploying using Deploy Token… 🔑
Configuring git…
/usr/bin/git config --global --add safe.directory /home/runner/work/hugo-lululu/hugo-lululu
/usr/bin/git config user.name humbertodias
/usr/bin/git config user.email ***
/usr/bin/git config core.ignorecase false
/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
/usr/bin/git remote rm origin
/usr/bin/git remote add origin ***github.com/humbertodias/hugo-lululu.git
Git configured… 🔧
Starting to commit changes…
/usr/bin/git ls-remote --heads ***github.com/humbertodias/hugo-lululu.git refs/heads/gh-pages
d6d423c52a60db40f8f8261f94eaa58b2316105a refs/heads/gh-pages
Creating worktree…
/usr/bin/git fetch --no-recurse-submodules --depth=1 origin gh-pages
From https://github.com/humbertodias/hugo-lululu
* branch gh-pages -> FETCH_HEAD
* [new branch] gh-pages -> origin/gh-pages
/usr/bin/git worktree add --no-checkout --detach github-pages-deploy-action-temp-deployment-folder
Preparing worktree (detached HEAD 829a99e)
/usr/bin/git checkout -B gh-pages origin/gh-pages
Previous HEAD position was 829a99e Enable Git LFS
Switched to a new branch 'gh-pages'
branch 'gh-pages' set up to track 'origin/gh-pages'.
/usr/bin/git config --global --add safe.directory /home/runner/work/hugo-lululu/hugo-lululu/github-pages-deploy-action-temp-deployment-folder
/usr/bin/chmod -R +rw /home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/index.html': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/ProjectVersion.txt': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/MemoryProfiler.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/style.css': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/progress-bar-empty-dark.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/progress-bar-full-light.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/fullscreen-button.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/progress-bar-empty-light.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/favicon.ico': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/unity-logo-light.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/webmemd-icon.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/progress-bar-full-dark.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/unity-logo-title-footer.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/TemplateData/unity-logo-dark.png': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/GUID.txt': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/Build': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/Build/WebGL.framework.js': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/Build/WebGL.wasm': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/Build/WebGL.loader.js': Operation not permitted
/usr/bin/chmod: changing permissions of '/home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/Build/WebGL.data': Operation not permitted
Unable to modify permissions…
/usr/bin/rsync -q -av --checksum --progress /home/runner/work/hugo-lululu/hugo-lululu/build/WebGL/WebGL/. github-pages-deploy-action-temp-deployment-folder --delete --exclude CNAME --exclude .nojekyll --exclude .ssh --exclude .git --exclude .github
Checking if there are files to commit…
/usr/bin/git add --all .
/usr/bin/git checkout -b github-pages-deploy-action/obkrx430f
Switched to a new branch 'github-pages-deploy-action/obkrx430f'
/usr/bin/git commit -m Deploying to gh-pages from @ humbertodias/hugo-lululu@829a99e4dbf467729456a4746c4279ae71266eed 🚀 --quiet --no-verify
Force-pushing changes...
/usr/bin/git push --force ***github.com/humbertodias/hugo-lululu.git github-pages-deploy-action/obkrx430f:gh-pages
remote: error: Trace: 34221b1f2f83c20996237ba5b001604a6c22a84545e14cc639615f8970056e05
remote: error: See https://gh.io/lfs for more information.
remote: error: File Build/WebGL.data is 169.83 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To https://github.com/humbertodias/hugo-lululu.git
! [remote rejected] github-pages-deploy-action/obkrx430f -> gh-pages (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/humbertodias/hugo-lululu.git'
Running post deployment cleanup jobs… 🗑️
/usr/bin/git checkout -B github-pages-deploy-action/obkrx430f
Reset branch 'github-pages-deploy-action/obkrx430f'
/usr/bin/chmod -R +rw github-pages-deploy-action-temp-deployment-folder
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 ❌
Notice: Deployment failed! ❌
Workflow
https://github.com/humbertodias/hugo-lululu/blob/main/.github/workflows/build.yml
Additional Comments
No response