Skip to content

Commit

Permalink
sbt-ci-release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
goshacodes committed Jan 1, 2025
1 parent f7e940b commit d221528
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 40 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release
on:
push:
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'adopt'
cache: sbt
- 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 }}
20 changes: 19 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,22 @@ def crossScalaSettings = {
}
}
)
}
}

inThisBuild(
List(
organization := "org.scalamock",
homepage := Some(url("http://scalamock.org/")),
licenses := List(
"MIT" -> url("https://opensource.org/licenses/MIT")
),
developers := List(
Developer("paulbutcher", "Paul Butcher", "", url("http://paulbutcher.com/")),
Developer("barkhorn", "Philipp Meyerhoefer", "", url("https://github.com/barkhorn")),
Developer("goshacodes", "Georgii Kovalev", "", url("https://github.com/goshacodes"))
),
sonatypeCredentialHost := "s01.oss.sonatype.org"
)
)

sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.8
sbt.version=1.10.5
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.1.0")
Expand Down
37 changes: 0 additions & 37 deletions publishing.sbt

This file was deleted.

0 comments on commit d221528

Please sign in to comment.