Skip to content

Automate releases with sbt-ci-release #5

Automate releases with sbt-ci-release

Automate releases with sbt-ci-release #5

Workflow file for this run

name: Release
on:
push:
branches: [master, main]
tags: ["*"]
pull_request:
branches: [ master ]
jobs:
publish:
runs-on: ubuntu-20.04
strategy:
matrix:
java-version: [ 8, 11 ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
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 }}
CI_RELEASE: publishSignedJdk${{ matrix.java-version }}
CI_SNAPSHOT_RELEASE: publishJdk${{ matrix.java-version }}