diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..2cf563f1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: Release +on: + workflow_dispatch: +jobs: + publish: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 + - uses: olafurpg/setup-scala@v10 + - run: sbt ci-release + env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} diff --git a/build.sbt b/build.sbt index 7e0b1bdb..b9be3796 100644 --- a/build.sbt +++ b/build.sbt @@ -46,11 +46,14 @@ lazy val publishSettings = Seq( name = "Marcin Rzeźnicki", email = "mrzeznicki@iterato.rs", url = url("https://github.com/marcin-rzeznicki")), - Developer(id = "jborkowski", name = "Jonatan Borkowski", email = "jborkowski@iterato.rs", url = url("https://github.com/jborkowski")) + Developer(id = "jborkowski", name = "Jonatan Borkowski", email = "jborkowski@iterato.rs", url = url("https://github.com/jborkowski")), + Developer(id = "pkiersznowski", + name = "Paweł Kiersznowski", + email = "pkiersznowski@iteratorshq.com", + url = url("https://github.com/pk044")) ), scmInfo := Some( ScmInfo(browseUrl = url("https://github.com/theiterators/kebs"), connection = "scm:git:https://github.com/theiterators/kebs.git")), - useGpg := true, releasePublishArtifactsAction := PgpKeys.publishSigned.value, credentials += Credentials(Path.userHome / ".ivy2" / ".credentials") ) ++ crossBuildSettings diff --git a/project/plugins.sbt b/project/plugins.sbt index 8acc3b66..631f9169 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,6 +1,6 @@ logLevel := Level.Warn addSbtPlugin("com.lucidchart" % "sbt-scalafmt" % "1.16") -addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3") +addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7") \ No newline at end of file