Skip to content

fix: batch mode for maven #2

fix: batch mode for maven

fix: batch mode for maven #2

name: Build, test and publish
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "zulu" # See 'Supported distributions' for available options
java-version: "21"
cache: maven
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build and test
run: mvn -B package
- name: Sign and deploy to Maven Central
run: mvn -B -DskipTests package gpg:sign deploy