Repository navigation
0.22.0 - 2026-12-05
Fixed
-
publishToGitHubPagesfails with "request timed out" (422) when the site has many files (#290)publishToGitHubPagessent all the files of the site in one GitHub "Create a tree" request. For a large site, GitHub timed out and returned422.Now the plugin builds the Git tree incrementally, as GitHub suggests. It sends the files in batches.
- The first batch has no
base_tree, so the new tree still replaces the whole content of the GitHub Pages branch. Deleted files are removed. - Each later batch uses the tree from the batch before it as its
base_tree. - The commit uses the last tree.
Two new settings control the batch size:
Setting key Default Description gitHubPagesPublishTreeBatchMaxEntries500The max number of files in one "Create a tree" request gitHubPagesPublishTreeBatchMaxBytes1048576The max size in bytes of the JSON body of one "Create a tree" request. A file that does not fit is sent alone. If GitHub still says the request timed out, set smaller values for these settings.
- The first batch has no
-
publishToGitHubPagesignoredgitHubPagesGitHubBaseUrlandgitHubPagesGitHubHeaderswhen it checked the GitHub Pages branch (#291)The branch check always called
https://api.github.com/. So with GitHub Enterprise, the plugin reported that the GitHub Pages branch did not exist. Now the branch check uses the same GitHub API settings as the rest ofpublishToGitHubPages.
Internal
- Add tests for
publishToGitHubPagesagainst a local fake GitHub API server (#291)- Unit tests for
commitAndPush0, which cover the batches, thebase_treechain and the422failure from #290. - New scripted tests
sbt-1-publishandsbt-2-publish. They runpublishToGitHubPageswith custom batch settings and send no request to GitHub.
- Unit tests for
What's Changed
- Close #290: Build the Git tree incrementally when publishing to GitHub Pages by @kevin-lee in #291
- Update: README.md - fix the broken Maven badge by @kevin-lee in #292
- sbt-github-pages v0.22.0 by @kevin-lee in #293
Full Changelog: v0.21.0...v0.22.0