Skip to content

Migrate to sbt-ci-release #1353

Migrate to sbt-ci-release

Migrate to sbt-ci-release #1353

Workflow file for this run

name: Scala CI
on:
pull_request:
push:
branches:
- master
env:
JAVA_OPTS: -Xms6g -Xmx6g -XX:+UseG1GC
JDK_JAVA_OPTIONS: -Xms6g -Xmx6g -XX:+UseG1GC # See https://stackoverflow.com/a/73708006
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala: [ 3.3.1 ]
module: [ sqltest, db, async, bigdata ]
steps:
- uses: actions/[email protected]
- name: Setup Java and Scala
uses: actions/[email protected]
with:
distribution: temurin
java-version: '8'
check-latest: true
- name: Scala ${{ matrix.scala }} Building ${{ matrix.module }}
env:
SCALA_VERSION: ${{ matrix.scala }}
run: |
echo "SCALA_VERSION='$SCALA_VERSION'"
./build/build.sh ${{ matrix.module }}
release:
if: ${{github.event_name != 'pull_request'}}
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/[email protected]
- name: Setup Java and Scala
uses: actions/[email protected]
with:
distribution: temurin
java-version: '8'
check-latest: true
- 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 }}