Skip to content

Commit fd57675

Browse files
author
Mateusz Kubuszok
committed
fix(release): single ;-separated sbt command (sbt 2.0 joins program args)
sbt 2.0 concatenates multiple program args into one command line, so `sbt "+publishSigned" sonaRelease` produced the invalid `+publishSigned sonaRelease` (Expected ';'). Pass one ;-separated command: on a tag `+publishSigned; sonaRelease`, otherwise `+publishSigned`.
1 parent b66969f commit fd57675

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
# versions for the plugin, 2.13 + 3 for compat). The plugin's `ci-release` command runs
3131
# a bare `publishSigned`, which only publishes each module's default scalaVersion.
3232
# On a tag, also release the staged Sonatype bundle.
33-
run: sbt "+publishSigned" ${{ startsWith(github.ref, 'refs/tags/') && 'sonaRelease' || '' }}
33+
# NB: sbt 2.0 joins multiple program args into ONE command line, so `sbt "+publishSigned"
34+
# sonaRelease` became the invalid `+publishSigned sonaRelease` ("Expected ';'"). Pass a
35+
# single, `;`-separated command instead.
36+
run: sbt "+publishSigned${{ startsWith(github.ref, 'refs/tags/') && '; sonaRelease' || '' }}"
3437
env:
3538
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
3639
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

0 commit comments

Comments
 (0)