From 06ed93f548348dac0e2664b67e0b7994aea5bc73 Mon Sep 17 00:00:00 2001 From: Bartlomiej Baj Date: Mon, 18 Dec 2023 15:16:44 +0200 Subject: [PATCH 1/4] Add CODEOWNERS --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..c111044 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +@jakipatryk From 27c7e49655b8d9d8f90ea5211a950bf54122c88b Mon Sep 17 00:00:00 2001 From: Bartlomiej Baj Date: Mon, 18 Dec 2023 15:17:14 +0200 Subject: [PATCH 2/4] Use the latest version of setup-scala in CI tests --- .github/workflows/ci_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 3d32179..2026251 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -33,7 +33,7 @@ jobs: uses: actions/checkout@v4 - uses: coursier/cache-action@v6 - name: Setup Scala - uses: olafurpg/setup-scala@v11 + uses: olafurpg/setup-scala@v14 with: java-version: "adopt@1.8" - name: Build and run tests From ffb6920d0353ef9229804312e0baad157cc8865b Mon Sep 17 00:00:00 2001 From: Bartlomiej Baj Date: Mon, 18 Dec 2023 15:17:30 +0200 Subject: [PATCH 3/4] Add publish.sbt --- publish.sbt | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 publish.sbt diff --git a/publish.sbt b/publish.sbt new file mode 100644 index 0000000..daded8f --- /dev/null +++ b/publish.sbt @@ -0,0 +1,39 @@ +/* + * Copyright 2023 ABSA Group Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +ThisBuild / organizationHomepage := Some(url("https://www.absa.africa")) +ThisBuild / scmInfo := Some( + ScmInfo( + browseUrl = url("https://github.com/AbsaOSS/springdoc-openapi-scala/tree/main"), + connection = "scm:git:git://github.com/AbsaOSS/springdoc-openapi-scala.git", + devConnection = "scm:git:ssh://github.com/AbsaOSS/springdoc-openapi-scala.git" + ) +) + +ThisBuild / developers := List( + Developer( + id = "jakipatryk", + name = "Bartlomiej Baj", + email = "bartlomiej.baj@absa.africa", + url = url("https://github.com/jakipatryk") + ) +) + +ThisBuild / homepage := Some(url("https://github.com/AbsaOSS/springdoc-openapi-scala")) +ThisBuild / description := "Enhancement of springdoc-openapi for Scala" +ThisBuild / organizationName := "ABSA Group Limited" +ThisBuild / startYear := Some(2023) +ThisBuild / licenses += "Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt") From 53b54fca1ac1889e5588ea4a7c164aa59728d25d Mon Sep 17 00:00:00 2001 From: Bartlomiej Baj Date: Mon, 18 Dec 2023 15:18:00 +0200 Subject: [PATCH 4/4] Add Release Github Workflow --- .github/workflows/release.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3170eff --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +# +# Copyright 2023 ABSA Group Limited +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +name: Release +on: + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: olafurpg/setup-scala@v14 + with: + java-version: "adopt@1.8" + - 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 }}