Skip to content

Add publish step #22

Merged
merged 1 commit into from
Oct 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ jobs:
- name: Compile and test
run: sbt test

- name: Publish artifacts
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: sbt ++${{ matrix.scala }} ci-release

ci-passed:
runs-on: ubuntu-latest
needs: build
Expand Down
40 changes: 40 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
//To use Scalafix on Scala 3 projects, you must unset `scalafixBinaryScalaVersion`
//ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value)

inThisBuild(
List(
organization := "ru.tinkoff",
homepage := Some(url("https://github.com/Tinkoff/oolong")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"edubrovski",
"Eduard Dubrovsky",
"[email protected]",
url("https://github.com/edubrovski")
),
Developer(
"danslapman",
"Daniil Smirnov",
"[email protected]",
url("https://github.com/danslapman")
),
Developer(
"desavitsky",
"Denis Savitsky",
"-",
url("https://github.com/desavitsky")
),
Developer(
"Assassin4791",
"Assassin4791",
"-",
url("https://github.com/Assassin4791")
),
Developer(
"InversionSpaces",
"InversionSpaces",
"[email protected]",
url("https://github.com/InversionSpaces")
)
)
)
)

val `oolong-bson` = (project in file("oolong-bson"))
.settings(Settings.common)
.settings(
Expand Down
7 changes: 4 additions & 3 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
addDependencyTreePlugin
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.34")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("ch.epfl.scala" % "sbt-missinglink" % "0.3.2")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.34")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("ch.epfl.scala" % "sbt-missinglink" % "0.3.2")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")