Skip to content

Commit 4e8be39

Browse files
committed
ci:release
Signed-off-by: Sylvain Carisey <[email protected]>
1 parent 9425dbb commit 4e8be39

File tree

3 files changed

+36
-16
lines changed

3 files changed

+36
-16
lines changed

.github/workflows/nexus-release.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@ on:
33
workflow_dispatch:
44
push:
55
branches:
6-
- 'feat/**' #will publish snapshots
7-
# - 'main' #will also publish snapshots - useful before releasing
6+
- 'feat/**' #publish snapshots
7+
- 'main' #also publish snapshots - useful before releasing
88
tags:
9-
- '**' #will publish a release
9+
- '**' #publish a release
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
env:
14+
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
15+
PGP_SECRET : ${{ secrets.GPG_SECRET }}
16+
GPG_OWNERTRUST : ${{ secrets.GPG_OWNERTRUST }}
17+
SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
18+
SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }}
1319
steps:
1420
- uses: actions/checkout@v4
1521
with:
@@ -21,10 +27,12 @@ jobs:
2127
cache: sbt
2228
- name: Tests
2329
run: sbt test
30+
- name: Configure GPG Key
31+
run: |
32+
echo $PGP_SECRET | base64 --decode | gpg --import -v --batch
33+
- name: Configure GPG Ownertrust
34+
run: |
35+
echo -n "$GPG_OWNERTRUST" | base64 --decode | gpg --import-ownertrust
2436
- name: Release
25-
run: sbt ci-release
26-
env:
27-
PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
28-
PGP_SECRET : ${{ secrets.GPG_SECRET }}
29-
SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
30-
SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }}
37+
run: |
38+
sbt ci-release

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
target
88
.$*
99
.DS_Store
10+
.bloop/
11+
project/.bloop/
12+
project/metals.sbt
13+
project/project/

build.sbt

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import xerial.sbt.Sonatype.{sonatypeCentralHost, sonatypeLegacy}
2+
13
ThisBuild / scalaVersion := "2.13.14"
2-
ThisBuild / organization := "com.lectra.kapoeira"
4+
ThisBuild / organization := "com.lectra"
35
ThisBuild / organizationName := "lectra"
46
ThisBuild / licenses += "Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")
57
ThisBuild / publishConfiguration := publishConfiguration.value.withOverwrite(true)
@@ -10,15 +12,23 @@ ThisBuild / scmInfo := Some(
1012
"scm:git:[email protected]/lectra-tech/kapoeira.git"
1113
)
1214
)
13-
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
14-
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
15+
//ThisBuild / sonatypeCredentialHost := sonatypeCentralHost
16+
ThisBuild / sonatypeCredentialHost := "oss.sonatype.org"
17+
ThisBuild / sonatypeRepository := "https://oss.sonatype.org/service/local"
18+
ThisBuild / versionScheme := Some("semver-spec")
19+
ThisBuild / homepage := Some(url("https://github.com/lectra-tech/kapoeira"))
20+
ThisBuild / developers := List(
21+
Developer( "jvauchel", "Johanna Vauchel", "[email protected]", url("https://github.com/jvauchel") ),
22+
Developer("ThomasLegoahec", "Thomas Legoahec","[email protected]",url("https://github.com/ThomasLegoahec")),
23+
Developer("sebastienvidal", "Sébastien Vidal","[email protected]",url("https://github.com/sebastienvidal")),
24+
Developer( "mrebiai", "Mehdi Rebiai", "[email protected]", url("https://github.com/mrebiai") ),
25+
Developer( "scarisey", "Sylvain Carisey", "[email protected]", url("https://github.com/scarisey") ),
26+
)
1527

1628
resolvers += "confluent" at "https://packages.confluent.io/maven/"
17-
1829
val zioVersion = "2.1.9"
1930

2031
lazy val root = (project in file("."))
21-
.enablePlugins(GitVersioning)
2232
.settings(
2333
name := "kapoeira",
2434
// assembly
@@ -64,5 +74,3 @@ ThisBuild / assemblyMergeStrategy := {
6474
oldStrategy(x)
6575
}
6676

67-
// git config
68-
git.useGitDescribe := true

0 commit comments

Comments
 (0)