Skip to content

Fix release_40x workflow: Central Portal + sbt install - #914

Open
sksamuel wants to merge 1 commit into
masterfrom
fix/release-40x-central-portal
Open

Fix release_40x workflow: Central Portal + sbt install#914
sksamuel wants to merge 1 commit into
masterfrom
fix/release-40x-central-portal

Conversation

@sksamuel

Copy link
Copy Markdown
Owner

Summary

The user-dispatched release_40x workflow (which lives on master and releases the 4.0.x line) failed on the scala-2_13 job with exit 127 — sbt: command not found (run 25775857651).

Two problems were stacked:

  1. The scala-2_13 job still used actions/setup-java@v1 (no sbt). The scala-2_12 job had already been migrated to coursier/setup-action, but the second job was overlooked.
  2. Even with sbt installed, sbt ++<ver> publishSigned no longer reaches Sonatype: PR Release publishing via Sonatype Central Portal #913 routed release publishTo on the release/4.0.x branch through sbt's localStaging, so publishSigned now writes only to a local staging dir. The upload+release step has to invoke sonaUpload/sonaRelease explicitly.

Mirror the structure of release.yml on release/4.0.x (from #913):

  • Single release job (the two parallel jobs would race on sonaRelease and produce competing Central Portal deployments).
  • sbt installed via coursier/setup-action@v1.
  • Publish step: sbt +publishSigned sonaUpload sonaRelease+publishSigned crossbuilds 2.12.14 + 2.13.17 from crossScalaVersions into a single local staging bundle, then upload + release once.

Test plan

🤖 Generated with Claude Code

This workflow lives on master but releases the 4.0.x line. After
#913 wired release publishing on release/4.0.x through sbt's
localStaging, plain publishSigned writes only to a local dir and
never reaches Sonatype — the upload/release step has to invoke
sonaUpload/sonaRelease explicitly. The scala-2_13 job was also
still on actions/setup-java@v1 with no sbt installed (exit 127).

Mirror release.yml on release/4.0.x: single job, sbt installed via
coursier, and `sbt +publishSigned sonaUpload sonaRelease` to
crossbuild both Scala versions into one Central Portal deployment
bundle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant