Skip to content

Commit

Permalink
Configure release process
Browse files Browse the repository at this point in the history
  • Loading branch information
guymers committed Jul 2, 2022
1 parent 76bce1e commit fd6b9e9
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI
on:
push:
branches:
main
branches: [ main ]
pull_request:
branches: [ '**' ]

jobs:
test:
Expand All @@ -30,10 +30,10 @@ jobs:
extraKey: v1

- name: Compile
run: sbt -mem 2048 "++${{ matrix.scala }} compile"
run: sbt "++${{ matrix.scala }} compile"

- name: Lint
run: sbt -mem 2048 "++${{ matrix.scala }} scalafmtCheckAll"
run: sbt "++${{ matrix.scala }} scalafmtCheckAll"

- name: Test
run: sbt -mem 2048 "++${{ matrix.scala }} test"
run: sbt "++${{ matrix.scala }} test"
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release
on:
push:
tags: [ 'v*' ]

jobs:
publish:
runs-on: ubuntu-20.04
name: Publish
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install JDK 8
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: '8'
java-package: jdk

- name: Cache SBT
uses: coursier/cache-action@v6
with:
extraKey: v1

- name: Release
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 }}
1 change: 1 addition & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-mem 2048
5 changes: 4 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ val Scala213 = "2.13.8"
val Scala3 = "3.1.3"

inThisBuild(Seq(
organization := "com.github.guymers",
organization := "io.github.guymers",
homepage := Some(url("https://github.com/guymers/ceesvee")),
licenses := List(License.MIT),
developers := List(
Developer("guymers", "Sam Guymer", "@guymers", url("https://github.com/guymers"))
),
scmInfo := Some(ScmInfo(url("https://github.com/sbt/ceesvee"), "[email protected]:guymers/ceesvee.git")),

sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
))

lazy val commonSettings = Seq(
Expand Down
2 changes: 2 additions & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.4.16")

addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.13")

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")

0 comments on commit fd6b9e9

Please sign in to comment.