Skip to content

Commit 1671f13

Browse files
configure sbt-ci-release plugin
1 parent 4f9ff87 commit 1671f13

File tree

3 files changed

+35
-9
lines changed

3 files changed

+35
-9
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master, main]
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@v5
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 }}
25+
CI_RELEASE: ${{ secrets.CI_RELEASE }}

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ lazy val commonSettings = Seq(
4848
homepage := Some(url("https://github.com/flink-extended/flink-scala-api")),
4949
sonatypeCredentialHost := sonatypeCentralHost,
5050
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
51-
publishMavenStyle := true,
52-
publishTo := sonatypePublishToBundle.value,
51+
// publishMavenStyle := true,
52+
// publishTo := sonatypePublishToBundle.value,
5353
pgpPassphrase := scala.util.Properties.propOrNone("gpg.passphrase").map(_.toCharArray),
5454
git.useGitDescribe := true,
5555
scalacOptions ++= Seq(

project/plugins.sbt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
2-
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
3-
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")
4-
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.7.2")
5-
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
6-
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.1.0")
7-
addSbtPlugin("com.github.sbt" % "sbt-protobuf" % "0.8.3")
1+
// addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
2+
// addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.3.1")
3+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5")
4+
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.7.2")
5+
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
6+
// addSbtPlugin("com.github.sbt" % "sbt-git" % "2.1.0")
7+
addSbtPlugin("com.github.sbt" % "sbt-protobuf" % "0.8.3")
8+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")

0 commit comments

Comments
 (0)