Skip to content

Commit 94021ab

Browse files
committed
add release workflow
1 parent 545e92d commit 94021ab

File tree

4 files changed

+45
-18
lines changed

4 files changed

+45
-18
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+
pull_request:
4+
push:
5+
branches: [master, main]
6+
tags: ["**"]
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-java@v4
15+
with:
16+
distribution: temurin
17+
java-version: 8
18+
cache: sbt
19+
- uses: sbt/setup-sbt@v1
20+
- run: sbt ci-release
21+
env:
22+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
23+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
24+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
25+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A Sbt plugin to support the OpenAPI generator project.
99
Add to your `project/plugins.sbt`:
1010

1111
```sbt
12-
addSbtPlugin("org.openapitools" % "sbt-openapi-generator" % "7.13.0")
12+
addSbtPlugin("org.openapitools" % "sbt-openapi-generator" % "7.14.0")
1313
```
1414

1515
# Configuration

build.sbt

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,22 @@ lazy val `sbt-openapi-generator` = (project in file("."))
1414
crossSbtVersions := List("0.13.17", "1.3.10"),
1515
sbtPlugin := true,
1616

17-
publishMavenStyle := true,
17+
inThisBuild(List(
18+
homepage := Some(url("https://openapi-generator.tech")),
19+
20+
organization := "org.openapitools",
21+
organizationName := "OpenAPI-Generator Contributors",
22+
organizationHomepage := Some(url("https://github.com/OpenAPITools")),
23+
24+
licenses += ("The Apache Software License, Version 2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
25+
26+
developers += Developer(
27+
id = "openapitools",
28+
name = "OpenAPI-Generator Contributors",
29+
email = "team@openapitools.org",
30+
url = url("https://github.com/OpenAPITools")
31+
)
32+
),
1833

1934
scriptedLaunchOpts := {
2035
scriptedLaunchOpts.value ++ Seq("-Xmx1024M", "-server", "-Dplugin.version=" + version.value)
@@ -27,22 +42,8 @@ lazy val `sbt-openapi-generator` = (project in file("."))
2742
Resolver.sonatypeRepo("snapshots")
2843
),
2944

30-
version := "7.13.0",
45+
//version := "7.14.0",
3146

32-
homepage := Some(url("https://openapi-generator.tech")),
33-
34-
organization := "org.openapitools",
35-
organizationName := "OpenAPI-Generator Contributors",
36-
organizationHomepage := Some(url("https://github.com/OpenAPITools")),
37-
38-
licenses += ("The Apache Software License, Version 2.0", url("https://www.apache.org/licenses/LICENSE-2.0.txt")),
39-
40-
developers += Developer(
41-
id = "openapitools",
42-
name = "OpenAPI-Generator Contributors",
43-
email = "team@openapitools.org",
44-
url = url("https://github.com/OpenAPITools")
45-
),
4647

4748
scmInfo := Some(
4849
ScmInfo(
@@ -51,5 +52,5 @@ lazy val `sbt-openapi-generator` = (project in file("."))
5152
devConnection = "scm:git:ssh://git@github.com:OpenAPITools/openapi-generator.git")
5253
),
5354

54-
libraryDependencies += "org.openapitools" % "openapi-generator" % "7.13.0"
55+
libraryDependencies += "org.openapitools" % "openapi-generator" % "7.14.0"
5556
).enablePlugins(SbtPlugin)

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.2")

0 commit comments

Comments
 (0)