Skip to content

Commit

Permalink
Enable bundle upload (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mijicd authored Nov 22, 2019
1 parent c124e25 commit 157331a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ release: &release
name: Fetch git tags
command: git fetch --tags
- <<: *load_cache
- run:
name: Write sonatype credentials
command: echo "credentials += Credentials(\"Sonatype Nexus Repository Manager\", \"oss.sonatype.org\", \"${SONATYPE_USER}\", \"${SONATYPE_PASSWORD}\")" > ~/.sbt/1.0/sonatype.sbt
- run:
name: Write PGP public key
command: echo -n "${PGP_PUBLIC}" | base64 -d > /tmp/public.asc
Expand All @@ -114,7 +117,7 @@ release: &release
command: echo -n "${PGP_SECRET}" | base64 -d > /tmp/secret.asc
- run:
name: Release artifacts
command: ./sbt ++${SCALA_VERSION}! releaseEarly
command: ./sbt ++${SCALA_VERSION}! clean sonatypeBundleClean +publishSigned sonatypeBundleRelease

documentation: &documentation
steps:
Expand Down Expand Up @@ -209,7 +212,7 @@ jobs:
- <<: *scala_211
- <<: *jdk_8

release_212:
release:
<<: *release
<<: *machine_ubuntu
environment:
Expand Down Expand Up @@ -248,7 +251,7 @@ workflows:
filters:
tags:
only: /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
- release_212:
- release:
context: Sonatype
requires:
- test_212_jdk8_jvm
Expand Down
1 change: 1 addition & 0 deletions .scala-steward.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
updates.ignore = [ { groupId = "com.jsuereth", artifactId = "sbt-pgp" } ]
4 changes: 3 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ inThisBuild(
Developer("jdegoes", "John De Goes", "[email protected]", url("http://degoes.net")),
Developer("toxicafunk", "Eric Noam", "[email protected]", url("https://github.com/toxicafunk"))
),
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
releaseEarlyWith := SonatypePublisher,
scmInfo := Some(
ScmInfo(url("https://github.com/zio/zio-metrics/"), "scm:git:[email protected]:zio/zio-metrics.git")
)
)
)

ThisBuild / publishTo := sonatypePublishToBundle.value

val http4sVersion = "0.21.0-M5"
val zioVersion = "1.0.0-RC16"
val interopVersion = "2.0.0.0-RC7" // "1.3.1.0-RC3"
Expand Down
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.0.0")
addSbtPlugin("ch.epfl.scala" % "sbt-release-early" % "2.1.1")
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.3.2")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.7")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.3")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.0.0")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.8")
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1")

0 comments on commit 157331a

Please sign in to comment.