Skip to content

Update maven.yml

Update maven.yml #272

Workflow file for this run

name: build
on:
push:
branches: [ main, "REL-*" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
server-id: vpro-ossrh
server-username: SONATYPE_USERNAME
server-password: SONATYPE_PASSWORD
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: GPG_SECRET_KEY_PASSPHRASE
cache: maven
- name: Build with Maven
run: mvn -B -Pdeploy,ossrh -U deploy
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_SECRET_KEY_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }}
#continue-on-error: true
- name: Publish to codecov
uses: codecov/codecov-action@v3
continue-on-error: true
- name: Publish Test Report
uses: EnricoMi/[email protected]
if: always()
with:
junit_files: "**/target/surefire-reports/*.xml"