Skip to main content

Release Notes

All releases of sbt-github-pages, newest first.

Showing 27 of 27 releases

2026

Fixed
  • publishToGitHubPages fails with "request timed out" (422) when the site has many files (#290)

    publishToGitHubPages sent all the files of the site in one GitHub "Create a tree" request. For a large site, GitHub timed out and returned 422.

    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 keyDefaultDescription
    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.

  • publishToGitHubPages ignored gitHubPagesGitHubBaseUrl and gitHubPagesGitHubHeaders when 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 of publishToGitHubPages.

Internal
  • Add tests for publishToGitHubPages against a local fake GitHub API server (#291)
    • Unit tests for commitAndPush0, which cover the batches, the base_tree chain and the 422 failure from #290.
    • New scripted tests sbt-1-publish and sbt-2-publish. They run publishToGitHubPages with custom batch settings and send no request to GitHub.

What's Changed

Internal Housekeeping
  • Update sbt plugins, libraries, and build configuration (#284, #286, #287)

    • Add sbt-salad-days 0.2.0.
    • Move project properties and library definitions from build.sbt to ProjectInfo.
    • Modernize the Scala build syntax and expand the Scalafmt rules.
    • Update sbt plugins:
      • sbt-ci-release: 1.12.0 -> 1.12.1
      • sbt-wartremover: 3.6.1 -> 3.6.2
      • sbt-devoops: 3.6.0 -> 3.9.0
    • Update library dependencies:
      • sbt2-compat: 0.1.0 -> 0.2.0
      • hedgehog: 0.13.1 -> 0.15.0
      • cats-effect: 3.7.0 -> 3.7.1
      • circe: 0.14.15 -> 0.14.16
      • http4s: 0.23.36 -> 0.23.37
      • effectie: 2.4.0 -> 2.5.0
      • logger-f: 2.12.0 -> 2.14.0
      • logger-f-sbt-logging: 2.12.0 -> 2.14.0
      • extras: 0.55.0 -> 0.56.0
    • Update the scripted test projects:
      • sbt 1: 1.11.2 -> 1.12.15
      • sbt 2: 2.0.1 -> 2.0.9
  • Update actions/setup-java from v5 to v6 (#285).

What's Changed

New Features
  • Support both sbt 1 and sbt 2

    sbt-github-pages is now cross-published for both sbt series from a single source tree.

    sbt seriesScalaArtifact
    sbt 1 (1.11.2+)2.12.20io.kevinlee:sbt-github-pages_2.12_1.0
    sbt 2 (2.0.1)3.8.4io.kevinlee:sbt-github-pages_sbt2_3

    addSbtPlugin("io.kevinlee" % "sbt-github-pages" % "0.20.0") resolves the right one for you, so no change is needed in project/plugins.sbt.

    The minimum supported sbt 1 version is unchanged (1.11.2).

    Note that building the sbt 2 artifact requires JDK 17 or later, because that is what the Scala 3.8.4 compiler requires. Using the plugin does not.

Internal
  • All tasks (publishToGitHubPages, gitHubPagesBranchExists, gitHubPagesGetCurrentBranch and gitHubPagesCreateGitHubPagesBranchIfNotExist) are now marked Def.uncached. sbt 2 caches every task by default, which would have made the git-shelling tasks return stale answers within a single session, and would have made publishToGitHubPages a no-op on its second invocation.

  • Replaced http4s-blaze-client with http4s-ember-client. Blaze is no longer maintained in step with the rest of http4s (it is pinned at 0.23.17 while http4s itself is at 0.23.36).

  • Added unit tests (hedgehog) and scripted tests for both sbt 1 and sbt 2.

What's Changed

New Features
  • Add better log messages for gh-pages branch creation (#268)

    It includes

    • How to set up the right GitHub Actions permissions to create a new branch and commit & push.
    • How to set up to use the newly created gh-pages branch for GitHub Pages.
    • Instructions to use the gitHubPagesUseGithubTokenForGitHubPagesBranchCreation setting key for a local build.

What's Changed

2025

Fixed
  • Fix: Commit fails in gh-pages creation (#254)
Changes
  • publishToGitHubPages should not run gitHubPagesCreateGitHubPagesBranchIfNotExist automatically (#257)

What's Changed

New Features
  • Fix: Publish fails if the gh-pages branch does not already exist (#113)
    • When gitHubPagesBranchExists is false, create the gh-pages branch (from gitHubPagesBranch)

      In general scenario, when running sbt publishToGitHubPages, if the gh-pages branch is missing, it creates the gh-pages branch before pushing files to it.

What's Changed

Internal Housekeeping
Update libraries, sbt and sbt plugins (#243)

Update dependencies and build tooling

  • Update Scalafmt: 3.6.1 -> 3.9.10
  • Update Scala: 2.12.18 -> 2.12.20
  • Update sbt: 1.9.8 -> 1.11.7 (global: 1.6.2 -> 1.11.2)
  • Update sbt plugins:
    • sbt-ci-release: 1.5.12 -> 1.11.2
    • sbt-wartremover: 3.1.5 -> 3.4.1
    • sbt-devoops: 3.2.0 -> 3.3.0
  • Update library dependencies:
    • hedgehog: 0.12.0 -> 0.13.0
    • cats-effect: 3.5.7 -> 3.6.3
    • circe: 0.14.12 -> 0.14.15
    • http4s: 0.23.30 -> 0.23.32
    • logger-f: 2.1.18 -> 2.4.0
    • extras: 0.44.0 -> 0.49.0
  • Remove unused sonatype-snapshots resolver (sbt 1.11.7 takes care of Maven Central)
  • Remove unused mavenCentralPublishSettings (sbt 1.11.7 takes care of Maven Central)
  • Remove unused import in GitHubPagesPlugin (change from the new logger-f)
  • formatting

What's Changed

Internal Housekeeping
  • Bump libraries and sbt plugins (#234)

    • Updated library versions in build.sbt:
      • hedgehog to 0.12.0
      • cats to 2.13.0
      • cats-effect to 3.5.7
      • github4s to 0.33.3
      • circe to 0.14.12
      • http4s to 0.23.30
      • http4s-blaze-client to 0.23.17
      • effectie to 2.0.0
      • logger-f to 2.1.18
    • Updated sbt-devoops version to 3.2.0 in project/plugins.sbt.
    • Refactored GitHubApi.scala to use GithubAPIs instead of Github.

What's Changed

2024

New Feature
  • Allow force push (#213) - Thanks @michaelmior
    • force push with the environment variable GITHUB_PAGES_PUBLISH_FORCE_PUSH
Internal Housekeeping
  • Bump libraries (#214)

    • cats-effect to 3.5.3
    • http4s to 0.23.25
    • http4s-blaze-client to 0.23.16
    • effectie to 2.0.0-beta14
    • logger-f to 2.0.0-beta24
  • Add sbt-devoops-starter (#216)

  • Bump sbt-devoops to 3.1.0 (#218)

What's Changed

New Contributors

2023

Internal Housekeeping
  • Upgrade Scala, sbt, sbt plugins and libraries (#200)
    • Scala to 2.12.18
    • sbt to 1.9.7
    • sbt-ci-release to 1.5.12
    • sbt-wartremover to 3.1.5
    • sbt-devoops to 3.0.0
    • cats to 2.10.0
    • cats-effect to 3.5.2
    • github4s to 0.32.1
    • circe to 0.14.6
    • http4s to 0.23.24
    • http4s-blaze-client to 0.23.15
    • effectie to 2.0.0-beta13
    • logger-f to 2.0.0-beta22
    • extras to 0.44.0

What's Changed

2022

Done
  • Upgrade effectie and logger-f to 2.0.0-beta4 (#180) - and update the code accordingly / also upgrade other libraries
    • effectie2.0.0-beta2 => 2.0.0-beta4
    • logger-f2.0.0-beta2 => 2.0.0-beta4
    • global sbt version1.2.8 => 1.6.2
    • hedgehog0.9.0 => 0.10.1
    • cats2.8.0 => 2.9.0
    • cats-effect3.3.14 => 3.4.3
    • http4s blaze client0.23.12 => 0.23.13
    • extras0.20.0 => 0.26.0

What's Changed

Done
  • Upgrade Scala, sbt, sbt-plugins and libraries (#171)
    • sbt 1.6.2 => 1.7.2
    • Scala 2.12.12 => 2.12.17
    • cats 2.7.0 => 2.8.0
    • cats-effect 3.3.12 => 3.3.14
    • github4s 0.31.0 => 0.31.2
    • circe 0.14.1 => 0.14.3
    • http4s 0.23.11 => 0.23.16
    • http4s-blaze-client 0.23.12
    • effectie 2.0.0-beta1 => 2.0.0-beta2
    • logger-f 2.0.0-beta1 => 2.0.0-beta2
    • extras 0.14.0 => 0.20.0

What's Changed

Done
  • Add settingKey to set the request timeout for publishing GitHub Pages (#165)

What's Changed

Done
  • Bump effectie and logger-f to 2.0.0-beta1 (#162)
  • Upgrade libraries (#160)
    • cats 2.6.1 => 2.7.0
    • cats-effect 2.5.3 => 3.3.5
    • github4s 0.28.5 => 0.31.0
    • http4s 0.21.27 => 0.23.11
    • effectie 1.15.0 => 1.16.0
    • logger-f 1.15.0 => 1.16.0
    • hedgehog 0.7.0 => 0.8.0
  • Publish to s01.oss.sonatype.org (the new Maven central) (#131)

What's Changed

2021

Fix
  • publishToGitHubPages fails if you have greater than 30 branches alphabetically before gh-pages (#119) - Thanks @zarthross for the helpful bug report!

What's Changed

Done
  • Add a link to the doc site to explain how to create publish branch (#114)

What's Changed

Done
  • Upgraded libs and sbt plugins (#106)
    • cats 2.6.0 => 2.6.1
    • cats-effect 2.5.0 => 2.5.3
    • github4s 0.28.4 => 0.28.5
    • github4s 0.28.4 => 0.28.5
    • circe 0.13.0 => 0.14.1
    • http4s 0.21.22 => 0.21.27
    • effectie 1.10.0 => 1.15.0
    • logger-f 1.10.0 => 1.15.0
    • sbt-devoops 2.6.0 => 2.10.0

What's Changed

Done
  • Add default values for org/repo names extracted from git remote info (#102) - Thanks @alejandrohdezma

What's Changed

New Contributors

Done
  • Upgrade sbt plugin and libraries (#93)
    • sbt 1.4.9 => 1.5.1
    • sbt-devoops 2.1.0 => 2.3.0
    • http4s 0.21.20 => 0.21.22
    • cats-core 2.4.2 => 2.6.0
    • cats-effect 2.3.3 => 2.5.0
    • github4s 0.28.2 => 0.28.4
    • effectie 1.9.0 => 1.10.0
    • logger-f 1.9.0 => 1.10.0
  • Publish directly to Maven Central (#96)

What's Changed

Done
  • Upgrade libraries and sbt (#85)
    • sbt-devoops 1.0.3 => 2.0.0 - Changed: GitHub Actions config accordingly
    • Cats 2.3.1 => 2.4.2
    • Cats Effect 2.3.1 => 2.3.3
    • github4s 0.27.1 => 0.28.2
    • http4s 0.21.15 => 0.21.19

2020

Done
  • A single commit to publish GitHub Pages (#74)

What's Changed

Done
  • Support GitHub Enterprise (#56)
    gitHubPagesGitHubBaseUrl: SettingKey[String]

    gitHubPagesGitHubAuthorizeUrl: SettingKey[String]

    gitHubPagesGitHubAccessTokenUrl: SettingKey[String]

    gitHubPagesGitHubHeaders: SettingKey[Map[String, String]]
  • Environment variables for GitHub Enterprise config (#68)
    • GITHUB_ENT_BASE_URL for gitHubPagesGitHubBaseUrl
    • GITHUB_ENT_AUTHORIZE_URL for gitHubPagesGitHubAuthorizeUrl
    • GITHUB_ENT_ACCESS_TOKEN_URL for gitHubPagesGitHubAccessTokenUrl
    • GITHUB_ENT_HEADERS for gitHubPagesGitHubHeaders

What's Changed

Fixed
  • Some failed cases of publishToGitHubPages task should fail properly (#59)

What's Changed

Fixed
  • publishToGitHubPages does not report error when it fails (#49)
  • Error when there is any directory with no file in it (#51)

What's Changed

Done
  • Replace master branch with main branch (#25)
  • Change accepted text config (#36)

What's Changed

Done
  • Added: GitHubPagesPlugin to publish gh-pages (#18)
  • All PRs

What's Changed