Skip to content

Commit

Permalink
Merge pull request #18 from scoquelin/publish-to-maven-repo
Browse files Browse the repository at this point in the history
Bumping versions and adding sbt-ci-release plugin
  • Loading branch information
scoquelin authored Aug 8, 2024
2 parents 208b3eb + e332e32 commit 25ebe2f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@ jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- java: 11
- java: 17
- java: 21

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '11'
java-version: ${{matrix.java}}
distribution: 'temurin'
cache: 'sbt'
- name: Compile
Expand All @@ -33,5 +40,5 @@ jobs:
run: sbt "unitTests / test"
- name: Run integration tests
run: sbt "integrationTests / test"
- name: Run all tests using Scala 3
- name: Run all tests using Scala 3 LTS
run: sbt ";++3.3.3;testAll"
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:
branches: [master, main]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
cache: sbt
- 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 }}
20 changes: 20 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
inThisBuild(List(
organization := "io.github.scoquelin",
homepage := Some(url("https://github.com/scoquelin/arugula")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"scoquelin",
"Sébastien Coquelin",
"seb.coquelin at gmail.com",
url("https://www.github.com/scoquelin")
),
Developer(
"72squared",
"John Loehrer",
"72squared at gmail.com",
url("https://www.github.com/72squared")
)
)
))

ThisBuild / version := "0.1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.13.14"
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")

0 comments on commit 25ebe2f

Please sign in to comment.