Skip to content

Rename CI workflow to GitHub Actions lint #1861

Rename CI workflow to GitHub Actions lint

Rename CI workflow to GitHub Actions lint #1861

Workflow file for this run

name: build
on:
push:
branches:
- master
paths-ignore:
- '**.md'
- '**.yml'
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '21', '22', '23', '24', '25', '26-ea' ]
architecture: [ 'x64' ]
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }}
steps:
- uses: actions/checkout@v5
- name: Setup JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
architecture: ${{ matrix.architecture }}
cache: 'maven'
- name: Build with Maven
run: mvn package
verify-javadoc:
runs-on: ubuntu-latest
name: Validate JavaDocs
steps:
- uses: actions/checkout@v5
- name: Setup JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '24'
architecture: 'x64'
cache: 'maven'
- name: Validate JavaDocs
run: mvn -Pdoclint package -DskipTests=true
deploy-snapshot:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v5
- name: Setup JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
server-id: central
server-username: CENTRAL_USERNAME
server-password: CENTRAL_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- name: Deploy Snapshot
run: mvn -B --no-transfer-progress -Psonatype-oss-release -DskipTests=true deploy
env:
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}