This repository has been archived by the owner on Apr 3, 2024. It is now read-only.
minor upgrade only #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: build | |
on: | |
push: | |
branches: [main, "*SNAPSHOT"] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 21 | |
cache: maven | |
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 | |
- name: Build with Maven | |
run: mvn -ntp -fae -B -Pdeploy deploy -Dgpg.skip=false | |
env: | |
SONATYPE_USERNAME: vpro | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
GPG_SECRET_KEY_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSPHRASE }} | |
- name: Publish to codecov | |
uses: codecov/codecov-action@v3 | |
if: github.ref == 'refs/heads/main' | |
continue-on-error: true | |
- name: Publish Test Report | |
uses: EnricoMi/publish-unit-test-result-action@v2.3.0 | |
if: always() | |
with: | |
junit_files: "**/target/surefire-reports/*.xml" |