Skip to content

Commit

Permalink
Merge pull request #395 from greshny-forks/add-ci-release
Browse files Browse the repository at this point in the history
add sbt-ci-release
  • Loading branch information
dimafeng authored Dec 22, 2024
2 parents 1a37867 + 4be3a03 commit add37d9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
branches: [master]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: sbt/setup-sbt@v1
- 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 }}
8 changes: 8 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ val commonSettings = Seq(
sonatypeProfileName := "testcontainers-scala",
sonatypeProjectHosting := Some(GitHubHosting("testcontainers", "testcontainers-scala", "[email protected]")),
licenses := Seq("The MIT License (MIT)" -> URI.create("https://opensource.org/licenses/MIT").toURL),
developers := List(
Developer(
"dimafeng",
"Dmitry Fedosov",
"[email protected]",
url("http://dimafeng.com")
)
),
ThisBuild / organization := "com.dimafeng",

Global / parallelExecution := false,
Expand Down
1 change: 1 addition & 0 deletions project/Plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.0")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")

0 comments on commit add37d9

Please sign in to comment.