Skip to content

Commit

Permalink
workaround sonatype double slash problem
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Aug 5, 2024
1 parent c5785be commit a293b46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ci/release-maven.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ rm gpg_key
# Build all artifacts
./mill -i __.publishArtifacts

./mill -i installLocal

# Publish all artifacts
./mill -i \
./target/mill-release -i \
mill.scalalib.PublishModule/publishAll \
--sonatypeCreds $SONATYPE_USERNAME:$SONATYPE_PASSWORD \
--gpgArgs --passphrase=$SONATYPE_PGP_PASSWORD,--no-tty,--pinentry-mode,loopback,--batch,--yes,-a,-b \
Expand Down
2 changes: 1 addition & 1 deletion scalalib/src/mill/scalalib/publish/SonatypePublisher.scala
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class SonatypePublisher(
val profileUri = api.getStagingProfileUri(stagingProfile)
val stagingRepoId =
api.createStagingRepo(profileUri, stagingProfile)
val baseUri = s"$uri/staging/deployByRepositoryId/$stagingRepoId/"
val baseUri = s"$uri/staging/deployByRepositoryId/$stagingRepoId"

publishToUri(payloads, artifacts, baseUri)

Expand Down

0 comments on commit a293b46

Please sign in to comment.