Skip to content

chore: release 2.2.4 #88

chore: release 2.2.4

chore: release 2.2.4 #88

Workflow file for this run

name: Publish jar
on:
push:
branches:
- main
jobs:
release:
name: Publish to Sonatype
runs-on: ubuntu-22.04
if: "startsWith(github.event.head_commit.message, 'chore: release')"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
cache: sbt
- name: Compile
run: sbt +compile
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.SIGNING_PRIVATE_KEY }}
passphrase: ${{ secrets.SIGNING_PRIVATE_KEY_PASSWORD }}
fingerprint: ${{ secrets.SIGNING_PRIVATE_KEY_FINGERPRINT }}
- name: List GPG keys
run: gpg -K
- name: Publish Signed Artifacts
env:
PGP_PASSPHRASE: ${{ secrets.SIGNING_PRIVATE_KEY_PASSWORD }}
run: sbt +publishSigned
- name: Release Bundle to Sonatype
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
run: sbt sonatypeBundleRelease