Skip to content

Graph with pdf larger than 100 MB fails to publish #44

@varnem2

Description

@varnem2

What Happened?

Given: I hit save on Logseq with a pdf larger then 100 MB.
Then: I need that change to be saved on my Github-Pages website.

What's actually happening: I'm getting an error during the final push to the github actions branch.

/usr/bin/git push --force ***github.com/varnem2/cyberpunk.git github-pages-deploy-action/23m5o9btt:gh-pages
remote: error: Trace: 43ac3ee0bbb1b176ddf473ae9c74f4ff23c427637c6edf396b321c047863cdf2        
remote: error: See https://gh.io/lfs for more information.        
remote: error: File assets/Cyberpunk_Red_1755890258178_0.pdf is 294.64 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/varnem2/cyberpunk.git
 ! [remote rejected] github-pages-deploy-action/23m5o9btt -> gh-pages (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/varnem2/cyberpunk.git'
Running post deployment cleanup jobs… 🗑️
/usr/bin/git checkout -B github-pages-deploy-action/23m5o9btt
Reset branch 'github-pages-deploy-action/23m5o9btt'
/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! ❌

Other Comments:

Per JamesIves/github-pages-deploy-action#1139 the github action step https://github.com/logseq/publish-spa/blob/main/action.yml#L37-L41 needs the following yaml added to enable lfs.

    - name: Checkout action
      uses: actions/checkout@v4
      with:
        repository: logseq/publish-spa
        path: .logseq-publish-spa
        lfs: true

Reproduce the Bug

  1. Create a new Github Repo and configure git lfs.
git init && git lfs install && git lfs track *.pdf
  1. Create Github repo and run command to add repo as valid remote
git remote add origin $repo
  1. Ensure github pages classic is enabled in the repo
  1. Open folder as logseq vault using the most recent beta version 0.10.13
  2. Add in github actions build.yml
  3. Mark page public using the 3 dots at the top of the screen.
  4. Drag pdf into the desktop window in that's larger then 100MB.
  5. Ensure logseq has successfully committed the file by checking your repo
  6. Review logs to ensure build is successful
  7. Go to github pages url and navigate to where you expect to see the pdf

Expected Behavior

I expect github action to deploy the asset successfully.

Desktop or Mobile Platform Information

Logseq App Version: 0.10.13
Example repos:

https://github.com/varnem2/cyberpunk/actions/runs/17165808918/job/48705870314
https://github.com/varnem2/cyberpunk/blob/master/.github/workflows/main1.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions