Skip to content

Commit

Permalink
Merge pull request #549 from goshacodes/pipeline
Browse files Browse the repository at this point in the history
sbt-ci-release pipeline
  • Loading branch information
goshacodes authored Jan 1, 2025
2 parents f7e940b + 2fcf0ce commit 5b8efb2
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 45 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release
on:
push:
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'adopt'
cache: sbt
- uses: sbt/setup-sbt@v1
- 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 }}
13 changes: 8 additions & 5 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'adopt'
- uses: sbt/setup-sbt@v1
- name: Run tests
run: sbt ++2.12.18 test

Expand All @@ -26,12 +27,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'adopt'
- uses: sbt/setup-sbt@v1
- name: Run tests
run: sbt ++2.13.12 test

Expand All @@ -42,9 +44,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'adopt'
- uses: sbt/setup-sbt@v1
- name: Run tests
run: sbt ++3.3.0 test
20 changes: 19 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,22 @@ def crossScalaSettings = {
}
}
)
}
}

inThisBuild(
List(
organization := "org.scalamock",
homepage := Some(url("http://scalamock.org/")),
licenses := List(
"MIT" -> url("https://opensource.org/licenses/MIT")
),
developers := List(
Developer("paulbutcher", "Paul Butcher", "", url("http://paulbutcher.com/")),
Developer("barkhorn", "Philipp Meyerhoefer", "", url("https://github.com/barkhorn")),
Developer("goshacodes", "Georgii Kovalev", "", url("https://github.com/goshacodes"))
),
sonatypeCredentialHost := "s01.oss.sonatype.org"
)
)

sonatypeRepository := "https://s01.oss.sonatype.org/service/local"
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.9.8
sbt.version=1.10.7
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.12.2")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("com.github.sbt" % "sbt-git" % "2.1.0")
Expand Down
37 changes: 0 additions & 37 deletions publishing.sbt

This file was deleted.

0 comments on commit 5b8efb2

Please sign in to comment.