Skip to content

Release run 34

Release run 34 #34

name: Release to Maven Central
run-name: Release run ${{ github.run_number }}
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: "11"
distribution: "temurin"
java-package: "jdk"
check-latest: true
server-id: "ossrh"
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
cache: "maven"
- name: Build & Deploy
run: mvn -U -B clean deploy -P release
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}