Skip to content

Commit

Permalink
Merge pull request #11 from VirtusLab/fix-publish
Browse files Browse the repository at this point in the history
Remove Scala.js version from native launcher name
  • Loading branch information
lwronski authored Mar 8, 2023
2 parents 7ac418e + eb9561c commit ad60df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ trait ScalaJsCliNativeImage extends ScalaModule with NativeImage {
val _ = Upload.copyLauncher(
nativeImage().path,
directory,
s"scala-js-ld-$scalaJsVersion",
s"scala-js-ld",
compress = true,
suffix = nameSuffix
)
Expand Down Expand Up @@ -363,7 +363,7 @@ object ci extends Module {
else ("v" + version, false)

Upload.upload(ghOrg, ghName, ghToken, tag, dryRun = false, overwrite = overwriteAssets)(launchers: _*)
if(version != scalaJsVersion) // when we release `0.13.0.1` we should also update native launchers in tag `0.13.0`
if(version != scalaJsVersion && !version.endsWith("-SNAPSHOT")) // when we release `0.13.0.1` we should also update native launchers in tag `0.13.0`
Upload.upload(ghOrg, ghName, ghToken, s"v$scalaJsVersion", dryRun = false, overwrite = true)(launchers: _*)
}
}
Expand Down

0 comments on commit ad60df3

Please sign in to comment.