Skip to content

Commit

Permalink
Update publishing settings
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Feb 24, 2021
1 parent 12565be commit 5a702cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ script:
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" -o "$TRAVIS_BRANCH" == "$TRAVIS_TAG" ]; then
if [ -z "$TRAVIS_TAG" ]; then
echo "Publish a snapshot";
sbt ++$TRAVIS_SCALA_VERSION clean publish;
sbt ++$TRAVIS_SCALA_VERSION clean publishSigned;
else
echo "Publish a release version=$TRAVIS_TAG";
version=$TRAVIS_TAG sbt ++$TRAVIS_SCALA_VERSION clean publishSigned sonatypeRelease;
version=$TRAVIS_TAG sbt ++$TRAVIS_SCALA_VERSION clean publishSigned sonatypeBundleRelease;
fi
else
echo "This is not a master branch commit. Skipping the publish/release step";
Expand Down
7 changes: 1 addition & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@ val commonSettings = Seq(
publishArtifact := false,
publishMavenStyle := true,
publishArtifact in Test := false,
publishTo := {
if (isSnapshot.value)
Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
else
Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
},
publishTo := sonatypePublishToBundle.value,
pomExtra := {
<url>https://github.com/scommons/scalajs-reactjs</url>
<licenses>
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ else {
}

addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.5")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")

0 comments on commit 5a702cb

Please sign in to comment.