Skip to content

Publish to Maven Central repository #5

Publish to Maven Central repository

Publish to Maven Central repository #5

Workflow file for this run

# https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-java-with-maven
name: Maven CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# temurin LTS versions
version: [17, 21]
steps:
- uses: actions/checkout@v4
# setup
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.version }}
distribution: 'temurin'
cache: maven
# verify
# https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
- name: Run maven verify (skip GPG signing)
run: mvn --batch-mode --update-snapshots --fail-fast -Dgpg.skip verify