Skip to content

Update sbt to 1.9.3 (#291) #210

Update sbt to 1.9.3 (#291)

Update sbt to 1.9.3 (#291) #210

Workflow file for this run

name: Release
on:
push:
branches: [master, main]
tags: ["*"]
jobs:
release:
concurrency: release
runs-on: ubuntu-22.04
steps:
- name: Checkout github repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: apt-get update
run: sudo apt-get update
- name: Install gnupg
run: sudo apt update && sudo apt install -y gnupg
- name: Import GPG key
run: echo $PGP_SECRET | base64 --decode | gpg --batch --import
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'sbt'
- name: Run tests
run: sbt clean +test
- name: Release to sonatype
run: sbt clean ciReleaseTagNextVersion ciReleaseSonatype
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
- name: Export ENV vars
run:
echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Package github release
run: sbt clean Universal/packageBin Universal/packageZipTarball
- name: Create github release
uses: softprops/action-gh-release@v1
with:
files: target/universal/*.zip
tag_name: ${{ env.LATEST_TAG }}