Skip to content

Commit add37d9

Browse files
authored
Merge pull request #395 from greshny-forks/add-ci-release
add sbt-ci-release
2 parents 1a37867 + 4be3a03 commit add37d9

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

.github/workflows/ci-release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master]
5+
tags: ["*"]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
- uses: actions/setup-java@v4
14+
with:
15+
distribution: temurin
16+
java-version: 8
17+
cache: sbt
18+
- uses: sbt/setup-sbt@v1
19+
- run: sbt ci-release
20+
env:
21+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
22+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
23+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
24+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

build.sbt

+8
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ val commonSettings = Seq(
4747
sonatypeProfileName := "testcontainers-scala",
4848
sonatypeProjectHosting := Some(GitHubHosting("testcontainers", "testcontainers-scala", "[email protected]")),
4949
licenses := Seq("The MIT License (MIT)" -> URI.create("https://opensource.org/licenses/MIT").toURL),
50+
developers := List(
51+
Developer(
52+
"dimafeng",
53+
"Dmitry Fedosov",
54+
55+
url("http://dimafeng.com")
56+
)
57+
),
5058
ThisBuild / organization := "com.dimafeng",
5159

5260
Global / parallelExecution := false,

project/Plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
22
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.0")
33
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
44
addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "1.0.0")
5+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")

0 commit comments

Comments
 (0)