Skip to content

Publish release package to the Maven Central Repository #4

Publish release package to the Maven Central Repository

Publish release package to the Maven Central Repository #4

name: Publish release package to the Maven Central Repository
on:
release:
types: [ created ]
jobs:
publish:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-13, macos-14 ]
runs-on: ${{ matrix.os }}
steps:
- name: checkout-repo
uses: actions/checkout@v4
- name: setup-jdk
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: build-and-package
run: mvn -Pnative-jpackage clean verify
- name: upload-to-release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*