Skip to content

Commit

Permalink
Merge pull request #165 from pk044/master
Browse files Browse the repository at this point in the history
Add release workflow
  • Loading branch information
pk044 committed Aug 20, 2021
2 parents ee25cb6 + 9becbbf commit a7f4100
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
7 changes: 5 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit a7f4100

Please sign in to comment.